/* LSB Decoder Tool Styles */
/* Location: assets/css/lsb-decoder.css */

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* Tool Header - same as color channel analyzer */
.tool-header {
    text-align: center;
    background: rgba(0, 17, 0, 0.95);
    border: 2px solid #0f0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #0f0;
    text-shadow: 0 0 15px #0f0, 0 0 30px #0f0;
}

.tool-subtitle {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 15px;
}

.tool-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    border-radius: 20px;
    color: #0f0;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tool Description */
.tool-description {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.tool-description h2 {
    color: #0ff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #0ff;
}

.tool-description p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.warning-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    color: #ffa500;
    font-weight: bold;
}

/* Upload Section - matches color channel analyzer */
.upload-section {
    background: rgba(0, 17, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.upload-section h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

.upload-area {
    background: rgba(0, 0, 0, 0.5);
    border: 3px dashed #0f0;
    border-radius: 10px;
    padding: 50px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.upload-area.drag-over {
    background: rgba(0, 255, 0, 0.1);
    border-color: #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.2em;
    color: #0f0;
    font-weight: bold;
    margin-bottom: 10px;
}

.upload-hint {
    color: #888;
    font-size: 0.9em;
}

/* Preview Section */
.preview-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.preview-section h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}

.image-preview {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.image-preview canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #0f0;
    border-radius: 5px;
}

.image-info {
    margin-top: 15px;
    color: #0ff;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* Extraction Controls */
.extraction-controls {
    background: rgba(0, 17, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.extraction-controls h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: #0ff;
    font-weight: bold;
    font-size: 0.95em;
}

.control-group select,
.control-group input[type="number"] {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 5px;
    color: #0f0;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.extraction-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 5px;
}

.extraction-options label {
    color: #0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.extraction-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.extraction-options input[type="number"] {
    max-width: 150px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    color: #0f0;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

/* Results Section */
.results-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.results-section h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}

/* Result Tabs */
.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #0f0;
    background: rgba(0, 255, 0, 0.05);
}

.tab-btn.active {
    color: #0f0;
    border-bottom-color: #0f0;
    background: rgba(0, 255, 0, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Box */
.result-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.result-header {
    background: rgba(0, 255, 0, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.result-header span {
    color: #0ff;
    font-weight: bold;
}

.btn-copy {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #0ff;
    color: #0ff;
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.extracted-data {
    padding: 20px;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Visual Result */
.visual-result {
    text-align: center;
}

.visual-description {
    color: #ccc;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 5px;
}

.visual-result canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #0f0;
    border-radius: 5px;
}

/* Stats Display */
.stats-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    font-family: 'Courier New', monospace;
    color: #0ff;
}

.stats-display div {
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.stats-display div:last-child {
    border-bottom: none;
}

.stats-display strong {
    color: #0f0;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 25px auto 0;
    background: linear-gradient(135deg, #0f0 0%, #0c0 100%);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    text-transform: uppercase;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    color: #0ff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* How It Works */
.how-it-works {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.how-it-works h2 {
    color: #0ff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 10px #0ff;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.explanation-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
}

.explanation-item h3 {
    color: #0f0;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.explanation-item p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
}

.explanation-item code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: #0ff;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

/* FAQ Section - same as color channel analyzer */
.faq-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.faq-section h2 {
    color: #0f0;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 10px #0f0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #0ff;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.faq-item p {
    color: #ccc;
    line-height: 1.8;
}

/* Navigation and Footer - same as color channel analyzer */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0 20px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.nav-btn {
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0f0;
    border-radius: 8px;
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #555;
    font-size: 0.9em;
    border-top: 1px solid #222;
    margin-top: 40px;
}

.footer-note {
    margin-top: 10px;
    color: #0f0;
    font-size: 0.85em;
}

/* Use Cases - same styling as color channel analyzer */
.use-cases {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.use-cases h3 {
    color: #0f0;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 8px 0;
    color: #0f0;
    border-left: 2px solid #0f0;
    padding-left: 15px;
    margin: 8px 0;
}

.use-cases strong {
    color: #0ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 10px;
    }
    
    .tool-header {
        padding: 20px;
    }
    
    .tool-header h1 {
        font-size: 1.8em;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .explanation-grid {
        grid-template-columns: 1fr;
    }
    
    .result-tabs {
        flex-direction: column;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}