.detector-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.detector-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

/* ============================================
   TEXT STEGANOGRAPHY DETECTOR PAGE
   ============================================ */
.analysis-container {
    max-width: 1180px;
    margin: 48px auto 0;
    padding: 20px;
}

.hero {
    background: linear-gradient(180deg, rgba(27, 27, 39, 0.96), rgba(15, 15, 22, 0.92));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0 0 12px;
    color: var(--color-primary);
}

.hero .tagline {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.method {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px 30px;
    margin: 0 auto 30px;
    max-width: 1100px;
    width: min(100%, 1100px);
    box-shadow: var(--shadow-card);
}

.method h2 {
    color: var(--color-primary);
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    text-align: center;
}

.method-header {
    margin-bottom: 20px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    color: #111;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    position: relative;
    transition: transform 0.2s ease;
}

.info-icon:hover {
    transform: translateY(-1px) scale(1.04);
}

.info-icon:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: min(280px, 72vw);
    background: rgba(14, 14, 20, 0.98);
    color: var(--color-text);
    text-align: left;
    border-radius: 10px;
    padding: 14px 14px 10px;
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 8px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: normal;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(14, 14, 20, 0.98) transparent transparent transparent;
}

.tooltip-content h4 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tooltip-content div {
    margin-bottom: 8px;
}

.tooltip-content b {
    color: var(--color-accent);
    font-weight: 600;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .input-section {
        grid-template-columns: 1fr 1fr;
    }
}

.text-input-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.text-input-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.text-input-box textarea,
.text-input-box input[type="text"],
.text-input-box input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(9, 10, 16, 0.7);
    color: var(--color-text);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
}

.text-input-box textarea {
    min-height: 220px;
}

.text-input-box textarea:focus,
.text-input-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(235, 63, 123, 0.12);
}

.file-upload-btn {
    align-self: flex-start;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.92rem;
}

.file-upload-btn:hover {
    background: rgba(235, 63, 123, 0.12);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.results-section {
    display: none;
    margin-top: 30px;
}

.results-section.show {
    display: block;
}

.anomaly-meter,
.score-card,
.expandable-section,
.decoded-message {
    box-shadow: var(--shadow-card);
}

.anomaly-meter {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 20px 18px;
    margin-bottom: 20px;
}

.anomaly-meter h3 {
    margin: 0 0 12px;
}

.meter-bar {
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #34c759 0%, #f7c948 50%, #ff5f57 100%);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.meter-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: rgba(15, 15, 22, 0.9);
    box-shadow: 0 0 10px rgba(15, 15, 22, 0.8);
    transition: left 0.5s ease;
}

.meter-label {
    text-align: center;
    margin-top: 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-text);
}

.score-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.score-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.score-card h4 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.score-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.expandable-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.expandable-section:hover {
    border-color: var(--color-primary);
}

.section-header {
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

.section-content {
    display: none;
    padding: 18px;
}

.section-content.show {
    display: block;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.comparison-table th,
.comparison-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--color-text);
}

.comparison-table .deviation {
    font-weight: 700;
}

.comparison-table .deviation.high {
    color: #ff6b6b;
}

.comparison-table .deviation.medium {
    color: #f7d154;
}

.comparison-table .deviation.low {
    color: #5dd57a;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.highlighted-text {
    background: rgba(9, 10, 16, 0.72);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.highlight-spacing {
    background: rgba(247, 209, 84, 0.22);
    border-bottom: 2px solid #f7d154;
}

.highlight-punctuation {
    background: rgba(171, 117, 255, 0.22);
    border-bottom: 2px solid #ab75ff;
}

.highlight-synonym {
    background: rgba(41, 173, 255, 0.2);
    border-bottom: 2px solid #29adff;
}

.decoded-message {
    background: rgba(93, 213, 122, 0.06);
    border: 1px solid rgba(93, 213, 122, 0.3);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 20px;
}

.decoded-message h4 {
    margin: 0 0 10px;
    color: #7cd08b;
}

.decoded-message .message-content {
    background: rgba(0, 0, 0, 0.28);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 0.98rem;
    word-break: break-word;
    white-space: pre-wrap;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.hidden-file-input {
    display: none;
}

.hidden-btn {
    display: none;
}

.legend-spacing {
    background: rgba(247, 209, 84, 0.22);
    border: 2px solid #f7d154;
}

.legend-punctuation {
    background: rgba(171, 117, 255, 0.22);
    border: 2px solid #ab75ff;
}

.legend-synonym {
    background: rgba(41, 173, 255, 0.2);
    border: 2px solid #29adff;
}

.confidence-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

.confidence-high {
    background: rgba(255, 99, 99, 0.12);
    color: #ff9e9e;
    border: 1px solid rgba(255, 99, 99, 0.35);
}

.confidence-medium {
    background: rgba(247, 209, 84, 0.12);
    color: #f7d154;
    border: 1px solid rgba(247, 209, 84, 0.38);
}

.confidence-low {
    background: rgba(93, 213, 122, 0.12);
    color: #8fe0a0;
    border: 1px solid rgba(93, 213, 122, 0.35);
}

@media (max-width: 700px) {
    .analysis-container {
        padding: 14px;
    }

    .hero,
    .method,
    .panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        width: 100%;
    }
}
