/* HashCrack - Professional CSS Framework */

/* CSS Variables for Design System */
:root {
    /* Colors - Blue theme for HashCrack */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-900: #0c4a6e;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Dark mode variables */
.dark-mode {
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    
    /* Adjust blue primary colors for dark mode */
    --primary-50: #082f49;
    --primary-100: #0c4a6e;
    --primary-500: #0ea5e9;
    --primary-600: #38bdf8;
    --primary-700: #7dd3fc;
    --primary-900: #e0f2fe;
    
    /* Adjust shadow for dark mode to be more visible */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
    
    background-color: var(--gray-50);
    color: var(--gray-700);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
    transition: color var(--transition-base);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Platform Layout */
.platform {
    min-height: 100vh;
    padding-bottom: var(--space-md);
}

.platform-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary-700);
    margin-bottom: var(--space-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

/* Brand Section */
.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: rgba(3, 105, 161, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-title {
    font-size: 1.75rem;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.platform-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 400;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(3, 105, 161, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-btn i {
    font-size: 1.1rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 var(--space-xs);
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.dark-mode .theme-toggle {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

/* Status Bar */
.status-bar {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
}

.status-indicator {
    font-size: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.status-ready {
    color: #10b981;
}

.status-working {
    color: #f59e0b;
}

.status-error {
    color: #ef4444;
}

.status-text {
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Performance optimizations */

/* Reduce repaints for frequently updated elements */
.progress-bar,
.stat-value,
.status-indicator {
    will-change: auto;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Container Layout */
.crack-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Two-column Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Statistics Row */
.stats-row {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.stat-card {
    flex: 1;
    background-color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-600);
    display: block;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    padding: var(--space-xs) 0;
}

.section-header h3 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0;
}

/* Shared section styles */
.input-section,
.wordlist-section,
.progress-section,
.history-section {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--gray-200);
}

/* Input Section */
.input-section {
    margin-bottom: var(--space-sm);
}

.input-group {
    margin-bottom: var(--space-sm);
}

.input-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
    font-size: 0.875rem;
}

/* Hash Input */
.hash-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background-color: white;
    transition: border-color var(--transition-fast), background-color var(--transition-base), color var(--transition-base);
    /* Performance optimization */
    will-change: border-color;
}

.hash-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.hash-detection {
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Wordlist Section */
.wordlist-section {
    margin-bottom: var(--space-sm);
}

.wordlist-built-in,
.wordlist-upload {
    margin-bottom: var(--space-sm);
}

.wordlist-select {
    width: 100%;
    padding: var(--space-xs);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    transition: border-color var(--transition-fast), background-color var(--transition-base), color var(--transition-base);
}

.wordlist-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* On-demand wordlist downloads */
.wordlist-downloads {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--gray-200);
}

.wordlist-downloads-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
}

.wordlist-downloads-head i {
    color: var(--primary-500);
    margin-right: 0.25rem;
}

.wordlist-storage-info {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--gray-500);
    text-align: right;
}

.wordlist-download-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@keyframes wordlist-attention-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
    50% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.22); }
}

.wordlist-attention {
    border-radius: var(--radius-md);
    animation: wordlist-attention-pulse 0.8s ease-in-out 2;
}

.wordlist-item {
    padding: var(--space-sm);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background-color: var(--gray-50);
    transition: border-color var(--transition-fast), background-color var(--transition-base);
}

.wordlist-item.is-ready {
    border-color: rgba(16, 185, 129, 0.45);
    background-color: rgba(16, 185, 129, 0.07);
}

.wordlist-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.wordlist-item-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-800);
}

.wordlist-item-badge {
    padding: 0.08rem 0.38rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.wordlist-item.is-ready .wordlist-item-badge {
    background-color: rgba(16, 185, 129, 0.16);
    color: var(--success-500);
}

.wordlist-item-meta {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: var(--gray-500);
}

.wordlist-item-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.35rem;
}

.wordlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--gray-700);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wordlist-btn:hover:not(:disabled) {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.wordlist-btn:disabled {
    opacity: 0.75;
    cursor: progress;
}

.wordlist-btn.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.wordlist-btn.is-primary:hover:not(:disabled) {
    color: white;
    box-shadow: var(--shadow-sm);
}

.wordlist-btn[data-action="remove"] {
    display: none;
    color: var(--gray-500);
}

.wordlist-item.is-ready .wordlist-btn[data-action="remove"] {
    display: inline-flex;
}

.wordlist-item.is-ready .wordlist-btn[data-action="download"] {
    display: none;
}

.wordlist-progress {
    display: none;
    height: 4px;
    margin-top: var(--space-sm);
    overflow: hidden;
    border-radius: var(--radius-full);
    background-color: var(--gray-200);
}

.wordlist-item.is-downloading .wordlist-progress {
    display: block;
}

.wordlist-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transition: width 0.2s ease;
}

.dark-mode .wordlist-item {
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode .wordlist-btn {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.dark-mode .wordlist-btn.is-primary {
    color: white;
}

@media (max-width: 480px) {
    .wordlist-item-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .wordlist-item-actions {
        width: 100%;
    }

    .wordlist-btn {
        flex: 1;
        justify-content: center;
    }
}

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-base), color var(--transition-base);
}

.file-upload-area:hover {
    border-color: var(--primary-500);
}

.upload-icon {
    font-size: 1.5rem;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
}

.upload-limit {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--gray-500);
}

.hidden-file-input {
    display: none;
}

/* Progress Section */
.progress-section {
    margin-bottom: var(--space-sm);
}

.progress-bar-container {
    height: 10px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.progress-status {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: center;
}

/* Crack Button */
.crack-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-md);
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.crack-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.crack-button:active:not(:disabled) {
    transform: translateY(0);
}

.crack-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* History and Results Sections */
.history-section {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-200);
    max-height: 600px;
    overflow-y: auto;
    /* GPU acceleration for smooth scrolling */
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

/* Optimize table rendering */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    /* Improve rendering performance */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.history-table th,
.history-table td {
    padding: var(--space-xs) var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.history-table th {
    font-weight: 600;
    color: var(--gray-800);
}

.history-table td {
    color: var(--gray-700);
}

.history-table tr:last-child td {
    border-bottom: none;
}

/* Additional table/section styles */
.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-500);
    color: white;
    font-size: 0.75rem;
    margin-left: var(--space-xs);
}

.toggle-history {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1rem;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.toggle-history:hover {
    color: var(--primary-600);
}

.toggle-history.active {
    color: var(--primary-600);
}

.history-content {
    transition: max-height var(--transition-base);
}

.hidden {
    display: none;
}

.no-history-message {
    text-align: center;
    padding: var(--space-md) 0;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.history-hash {
    font-family: var(--font-mono);
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.found {
    color: var(--success-500);
    font-weight: 600;
}

.not-found {
    color: var(--error-500);
    font-weight: 600;
    font-style: italic;
}

.history-actions {
    display: flex;
    gap: var(--space-xs);
    white-space: nowrap;
}

.history-button {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: var(--space-xs);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.history-button:hover {
    color: var(--primary-600);
}

/* Actions Row */
.actions-row {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background-color: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.action-button:hover {
    background-color: var(--primary-600);
}

.action-button:disabled {
    background-color: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.7;
}

.action-button.secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.action-button.secondary:hover {
    background-color: var(--gray-300);
}

/* Notifications */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.notification {
    background-color: var(--gray-100);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    max-width: 350px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    animation-fill-mode: forwards;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.notification-icon {
    font-size: 1.25rem;
    color: var(--primary-500);
}

.notification-message {
    flex: 1;
    font-size: 0.875rem;
}

.notification.success {
    border-left-color: var(--success-500);
}

.notification.success .notification-icon {
    color: var(--success-500);
}

.notification.warning {
    border-left-color: var(--warning-500);
}

.notification.warning .notification-icon {
    color: var(--warning-500);
}

.notification.error {
    border-left-color: var(--error-500);
}

.notification.error .notification-icon {
    color: var(--error-500);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Dark Mode Specific Styles */
.dark-mode .hash-input,
.dark-mode .text-input,
.dark-mode .wordlist-select {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-mode .hash-input:focus,
.dark-mode .text-input:focus,
.dark-mode .wordlist-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.dark-mode .file-upload-area {
    border-color: var(--gray-400);
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.dark-mode .stat-card {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.dark-mode .stat-card:hover {
    border-color: var(--gray-300);
}

.dark-mode .action-button {
    background-color: var(--primary-600);
    color: white;
}

.dark-mode .action-button:hover {
    background-color: var(--primary-700);
}

.dark-mode .action-button.secondary {
    background-color: var(--gray-300);
    color: var(--gray-900);
}

.dark-mode .action-button.secondary:hover {
    background-color: var(--gray-400);
}

.dark-mode .notification {
    background-color: var(--gray-100);
    border-left-color: var(--primary-500);
}

.dark-mode .history-table th {
    color: var(--gray-600);
    border-bottom-color: var(--gray-300);
    background-color: var(--gray-200);
}

.dark-mode .history-table td {
    color: var(--gray-600);
    border-bottom-color: var(--gray-300);
}

/* Add more contrast to table rows in dark mode */
.dark-mode .history-table tr:hover {
    background-color: var(--gray-200);
}

.dark-mode .history-hash {
    color: var(--gray-600);
}

.dark-mode .found {
    color: var(--success-500);
}

.dark-mode .not-found {
    color: var(--error-500);
}

/* Dark mode section styles */
.dark-mode .input-section,
.dark-mode .wordlist-section,
.dark-mode .progress-section,
.dark-mode .history-section {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
}

/* Dark mode progress bar */
.dark-mode .progress-bar {
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

/* Dark mode header */
.dark-mode .platform-header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    border-bottom-color: var(--primary-900);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .crack-container {
        padding: 0 var(--space-md);
    }
    
    .stats-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .actions-row {
        flex-direction: column;
    }
    
    .history-table th:nth-child(3),
    .history-table td:nth-child(3) {
        display: none;
    }
    
    /* Header responsive */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .header-brand {
        width: 100%;
    }
    
    .header-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-label {
        display: none;
    }
    
    .nav-btn {
        padding: var(--space-sm);
    }
    
    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .platform-title {
        font-size: 1.5rem;
    }
    
    .platform-subtitle {
        font-size: 0.75rem;
    }
}
