/* Text Steganography Tool - Matrix Theme Styles */

/* Unicode Info Table */
.unicode-info {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.unicode-info h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 1rem;
}

.unicode-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.unicode-table th,
.unicode-table td {
    border: 1px solid #00ff00;
    padding: 0.75rem;
    text-align: left;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.unicode-table th {
    background: rgba(0, 255, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
}

.unicode-table tr:hover {
    background: rgba(0, 255, 0, 0.1);
}

.char-display {
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 0.5rem;
}

.invisible-char-box {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px dashed rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
    vertical-align: middle;
    position: relative;
}

.invisible-char-box::before {
    content: '∅';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 255, 0, 0.3);
    font-size: 1.5rem;
}

.invisible-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(0, 255, 0, 0.5);
    font-style: italic;
    text-transform: uppercase;
}

.binary-value {
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Character Count */
.char-count,
.info-text {
    display: block;
    margin-top: 0.5rem;
    color: rgba(0, 255, 0, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

/* Encoding Options */
.encoding-options {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.encoding-options h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 1rem;
}

.encoding-options label {
    display: block;
    margin: 0.75rem 0;
    color: #00ff00;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.encoding-options label:hover {
    background: rgba(0, 255, 0, 0.1);
}

.encoding-options input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #00ff00;
}

/* Result Info */
.result-info {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    display: grid;
    gap: 0.5rem;
}

.result-info p {
    margin: 0;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: space-between;
}

.result-info strong {
    color: rgba(0, 255, 0, 0.8);
}

.result-info span {
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Visualization */
.visualization {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.visualization-header {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.char-viz {
    display: inline-block;
    margin: 2px;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.75rem;
}

.char-viz.visible {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.char-viz.hidden {
    background: rgba(255, 0, 0, 0.3);
    color: #ff0000;
    border: 1px dashed #ff0000;
}

.char-viz.space {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
}

/* Detection Results */
#detection-results {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.detection-alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detection-alert.found {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
    animation: pulse 2s infinite;
}

.detection-alert.clean {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.detection-stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid #00ff00;
}

.stat-label {
    color: rgba(0, 255, 0, 0.8);
}

.stat-value {
    color: #00ff00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Character Breakdown */
#char-breakdown {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

#char-breakdown h3 {
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 1rem;
}

.char-entry {
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff00;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.char-entry:last-child {
    margin-bottom: 0;
}

.char-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.char-info-item {
    display: flex;
    flex-direction: column;
}

.char-info-label {
    color: rgba(0, 255, 0, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.char-info-value {
    color: #00ff00;
    font-weight: bold;
}

.zwc-badge {
    display: inline-block;
    background: rgba(255, 0, 0, 0.3);
    color: #ff0000;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Warning Section */
.warning-section {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid #ffa500;
    border-radius: 5px;
    padding: 2rem;
    margin: 2rem 0;
}

.warning-section h2 {
    color: #ffa500;
    margin-top: 0;
}

.warning-section p {
    color: #ffa500;
    line-height: 1.8;
}

.warning-section strong {
    color: #ff8800;
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

.security-tips {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid #ffa500;
    padding: 1rem;
    margin-top: 1rem;
}

.security-tips h3 {
    color: #ffa500;
    margin-top: 0;
}

.security-tips ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.security-tips li {
    color: #ffa500;
    margin: 0.5rem 0;
}

/* Mode Sections */
.mode-section {
    display: none;
}

.mode-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 0.75rem 2rem;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mode-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Scrollbar Styling */
.visualization::-webkit-scrollbar,
#char-breakdown::-webkit-scrollbar {
    width: 8px;
}

.visualization::-webkit-scrollbar-track,
#char-breakdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.visualization::-webkit-scrollbar-thumb,
#char-breakdown::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.visualization::-webkit-scrollbar-thumb:hover,
#char-breakdown::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
    }
    
    .unicode-table {
        font-size: 0.85rem;
    }
    
    .unicode-table th,
    .unicode-table td {
        padding: 0.5rem;
    }
    
    .result-info p {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .char-info {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .mode-selector,
    .button-group,
    .copy-btn {
        display: none;
    }
    
    .visualization,
    #char-breakdown,
    #detection-results {
        border: 2px solid #000;
        max-height: none;
    }
    
    .warning-section {
        border-color: #000;
    }
}