/* File Hash Integrity Checker - Complete Styles */

/* ===== CSS Variables ===== */
.file-hash-checker-container {
    --fhc-primary: var(--primary-color, #3498db);
    --fhc-secondary: var(--secondary-color, #2ecc71);
    --fhc-bg: var(--card-background, #ffffff);
    --fhc-surface: var(--background-color, #f8f9fa);
    --fhc-text: var(--text-color, #333333);
    --fhc-text-muted: #6c757d;
    --fhc-border: var(--border-color, rgba(0, 0, 0, 0.1));
    --fhc-success: #27ae60;
    --fhc-error: #e74c3c;
    --fhc-warning: #f39c12;
    --fhc-info: #3498db;
    --fhc-radius: 12px;
    --fhc-radius-lg: 16px;
    --fhc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --fhc-transition: all 0.3s ease;
}

.dark-theme .file-hash-checker-container {
    --fhc-bg: var(--card-background, #1a1d24);
    --fhc-surface: #0f1115;
    --fhc-text: #f5f5f5;
    --fhc-text-muted: #a0a0a0;
    --fhc-border: rgba(255, 255, 255, 0.08);
    --fhc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Base Container ===== */
.file-hash-checker-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: var(--font-family, 'Inter', sans-serif);
    color: var(--fhc-text);
}

/* ===== Header ===== */
.fhc-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.05));
    border-radius: var(--fhc-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--fhc-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--fhc-primary), var(--fhc-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.header-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-subtitle {
    margin: 0.25rem 0 0;
    color: var(--fhc-text-muted);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--fhc-border);
    background: var(--fhc-bg);
    color: var(--fhc-text);
    cursor: pointer;
    transition: var(--fhc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    border-color: var(--fhc-primary);
    color: var(--fhc-primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--fhc-text-muted);
    cursor: pointer;
    transition: var(--fhc-transition);
}

.btn-icon-sm:hover {
    color: var(--fhc-text);
    background: var(--fhc-surface);
}

/* ===== Privacy Notice ===== */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(var(--secondary-rgb), 0.1);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--fhc-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    flex: 1;
    min-width: 200px;
}

.notice-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.notice-content span {
    font-size: 0.85rem;
    color: var(--fhc-text-muted);
}

.notice-badge {
    padding: 0.5rem 1rem;
    background: var(--fhc-secondary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Settings & Educational Panels ===== */
.settings-panel,
.educational-panel {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.settings-header,
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--fhc-border);
    background: var(--fhc-surface);
}

.settings-header h4,
.edu-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fhc-text-muted);
}

.setting-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--fhc-border);
    border-radius: 8px;
    background: var(--fhc-surface);
    color: var(--fhc-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--fhc-border);
    position: relative;
    transition: var(--fhc-transition);
}

.toggle-slider::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--fhc-transition);
}

.setting-toggle input:checked+.toggle-slider {
    background: var(--fhc-primary);
}

.setting-toggle input:checked+.toggle-slider::after {
    left: 23px;
}

.setting-toggle input {
    display: none;
}

/* ===== Educational Content ===== */
.edu-content {
    padding: 1.5rem;
}

.edu-section {
    margin-bottom: 1.5rem;
}

.edu-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--fhc-primary);
}

.edu-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--fhc-surface);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--fhc-primary), var(--fhc-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.flow-arrow {
    color: var(--fhc-text-muted);
    font-size: 1.25rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.property-card {
    padding: 1rem;
    background: var(--fhc-surface);
    border-radius: var(--fhc-radius);
    text-align: center;
    border: 1px solid var(--fhc-border);
}

.property-card i {
    font-size: 1.5rem;
    color: var(--fhc-primary);
    margin-bottom: 0.5rem;
}

.property-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.property-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--fhc-text-muted);
}

.algo-table {
    width: 100%;
    border-collapse: collapse;
}

.algo-table th,
.algo-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--fhc-border);
}

.algo-table th {
    background: var(--fhc-surface);
    font-weight: 600;
}

.algo-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.algo-badge.md5 {
    background: #e74c3c20;
    color: #e74c3c;
}

.algo-badge.sha1 {
    background: #f39c1220;
    color: #f39c12;
}

.algo-badge.sha256 {
    background: #27ae6020;
    color: #27ae60;
}

.algo-badge.sha512 {
    background: #3498db20;
    color: #3498db;
}

.algo-badge.crc32 {
    background: #9b59b620;
    color: #9b59b6;
}

.security-weak {
    color: #e74c3c;
}

.security-strong {
    color: #27ae60;
}

.security-none {
    color: #6c757d;
}

/* ===== Tabs ===== */
.fhc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: var(--fhc-surface);
    border-radius: var(--fhc-radius);
    border: 1px solid var(--fhc-border);
}

.fhc-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--fhc-text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--fhc-transition);
}

.fhc-tab:hover {
    background: var(--fhc-bg);
    color: var(--fhc-text);
}

.fhc-tab.active {
    background: var(--fhc-primary);
    color: #fff;
}

.fhc-tab-content {
    display: none;
}

.fhc-tab-content.active {
    display: block;
}

/* ===== Drop Zone ===== */
.drop-zone {
    position: relative;
    border: 2px dashed var(--fhc-border);
    border-radius: var(--fhc-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: var(--fhc-transition);
    background: var(--fhc-bg);
    margin-bottom: 1.5rem;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--fhc-primary);
    background: rgba(var(--primary-rgb), 0.03);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone .browse-btn {
    pointer-events: all;
}

.drop-icon {
    font-size: 3rem;
    color: var(--fhc-primary);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.drop-zone p {
    margin: 0;
    color: var(--fhc-text-muted);
}

.drop-note {
    margin-top: 1rem !important;
    font-size: 0.8rem !important;
}

.drop-zone-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--fhc-radius-lg);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--fhc-primary);
}

.drop-zone.dragover .drop-zone-overlay {
    display: flex;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--fhc-primary), var(--fhc-secondary));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fhc-transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--fhc-primary);
    border: 2px solid var(--fhc-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fhc-transition);
}

.btn-outline:hover {
    background: var(--fhc-primary);
    color: #fff;
}

.btn-outline-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-width: 1px;
}

/* ===== Algorithm Selection ===== */
.algorithm-selection {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.algorithm-selection h4 {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.algo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.algo-checkbox {
    cursor: pointer;
}

.algo-checkbox input {
    display: none;
}

.algo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--fhc-border);
    border-radius: 8px;
    transition: var(--fhc-transition);
}

.algo-checkbox input:checked+.algo-box {
    border-color: var(--fhc-primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.algo-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.algo-length {
    font-size: 0.75rem;
    color: var(--fhc-text-muted);
}

/* ===== Processing Section ===== */
.processing-section {
    margin-bottom: 1.5rem;
}

.processing-card {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
}

.processing-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.processing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--fhc-border);
    border-top-color: var(--fhc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--fhc-surface);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fhc-primary), var(--fhc-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    min-width: 45px;
}

.processing-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--fhc-text-muted);
}

/* ===== Single Results ===== */
.file-info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.file-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--fhc-primary);
}

.file-details {
    flex: 1;
    min-width: 200px;
}

.file-details h4 {
    margin: 0 0 0.5rem;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--fhc-text-muted);
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ===== Hash Results Grid ===== */
.hash-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hash-card {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    overflow: hidden;
}

.hash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--fhc-surface);
    border-bottom: 1px solid var(--fhc-border);
}

.hash-algo-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hash-length-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--fhc-primary);
    border-radius: 4px;
}

.hash-card-body {
    padding: 1rem;
}

.hash-value {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    padding: 0.75rem;
    background: var(--fhc-surface);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.hash-actions {
    display: flex;
    gap: 0.5rem;
}

.hash-action-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--fhc-border);
    background: transparent;
    color: var(--fhc-text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--fhc-transition);
}

.hash-action-btn:hover {
    border-color: var(--fhc-primary);
    color: var(--fhc-primary);
}

/* ===== Verify Section ===== */
.verify-section {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.verify-section h4 {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verify-input-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.verify-select {
    padding: 0.75rem;
    border: 1px solid var(--fhc-border);
    border-radius: 8px;
    background: var(--fhc-surface);
    color: var(--fhc-text);
    min-width: 180px;
}

.verify-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.verify-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--fhc-border);
    border-radius: 8px;
    background: var(--fhc-surface);
    color: var(--fhc-text);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.paste-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--fhc-text-muted);
    cursor: pointer;
}

.verify-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.verify-result.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.verify-result.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ===== Export Section ===== */
.export-section {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
}

.export-section h4 {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== Batch Tab ===== */
.batch-drop-zone {
    min-height: 180px;
}

.batch-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.batch-option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.batch-progress {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.batch-results {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    overflow: hidden;
}

.batch-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--fhc-surface);
    border-bottom: 1px solid var(--fhc-border);
}

.batch-results-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.stat-item.success {
    color: var(--fhc-success);
}

.stat-item.error {
    color: var(--fhc-error);
}

.batch-table-wrapper {
    overflow-x: auto;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
}

.batch-table th,
.batch-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fhc-border);
}

.batch-table th {
    background: var(--fhc-surface);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--fhc-text-muted);
}

.batch-table .hash-cell {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-table .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.batch-table .status-badge.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.batch-table .status-badge.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.batch-export {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--fhc-border);
}

/* ===== Compare Tab ===== */
.compare-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.compare-column {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    overflow: hidden;
}

.compare-header {
    padding: 1rem;
    background: var(--fhc-surface);
    border-bottom: 1px solid var(--fhc-border);
}

.compare-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-drop-zone {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 2rem;
}

.compare-result {
    padding: 1rem;
    border-top: 1px solid var(--fhc-border);
}

.compare-file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.compare-hash {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    word-break: break-all;
    padding: 0.75rem;
    background: var(--fhc-surface);
    border-radius: 6px;
    line-height: 1.5;
}

.compare-middle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-status {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--fhc-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--fhc-text-muted);
    border: 2px solid var(--fhc-border);
}

.compare-status.match {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
    color: #27ae60;
}

.compare-status.mismatch {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

.compare-verdict {
    padding: 1.5rem;
    border-radius: var(--fhc-radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.compare-verdict.match {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.compare-verdict.mismatch {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.verdict-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.compare-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Snapshot Tab ===== */
.snapshot-intro {
    text-align: center;
    padding: 2rem;
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
}

.intro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fhc-primary);
}

.snapshot-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.snapshot-action-card {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
    text-align: center;
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-icon.create {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.action-icon.load {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.mini-drop-zone {
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px dashed var(--fhc-border);
    border-radius: 8px;
}

.snapshot-creation-panel,
.snapshot-verify-panel {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--fhc-surface);
    border-bottom: 1px solid var(--fhc-border);
}

.panel-header h4 {
    margin: 0;
}

.snapshot-file-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
}

.snapshot-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--fhc-surface);
    margin-bottom: 0.5rem;
}

.snapshot-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--fhc-border);
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group input,
.option-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--fhc-border);
    border-radius: 6px;
    background: var(--fhc-surface);
    color: var(--fhc-text);
}

.snapshot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--fhc-surface);
    border-bottom: 1px solid var(--fhc-border);
}

.snapshot-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.verify-files-zone {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--fhc-border);
}

.snapshot-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.summary-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--fhc-surface);
}

.summary-stat i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.summary-stat.unchanged {
    color: #27ae60;
}

.summary-stat.modified {
    color: #f39c12;
}

.summary-stat.missing {
    color: #e74c3c;
}

.summary-stat.new {
    color: #3498db;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--fhc-text-muted);
}

.snapshot-details-table {
    padding: 0 1.5rem;
    overflow-x: auto;
}

.snapshot-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.snapshot-details-table th,
.snapshot-details-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--fhc-border);
}

.snapshot-export-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.saved-snapshots {
    background: var(--fhc-bg);
    border: 1px solid var(--fhc-border);
    border-radius: var(--fhc-radius);
    padding: 1.5rem;
}

.saved-snapshots h4 {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--fhc-text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ===== Toast Notifications ===== */
.fhc-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fhc-toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: var(--fhc-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    min-width: 280px;
    border-left: 4px solid var(--fhc-primary);
}

.fhc-toast.success {
    border-left-color: #27ae60;
}

.fhc-toast.error {
    border-left-color: #e74c3c;
}

.fhc-toast.warning {
    border-left-color: #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Modal ===== */
.fhc-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--fhc-bg);
    border-radius: var(--fhc-radius-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--fhc-border);
}

.modal-header h4 {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.hash-display-full {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    padding: 1rem;
    background: var(--fhc-surface);
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hash-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--fhc-text-muted);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--fhc-border);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .compare-container {
        grid-template-columns: 1fr;
    }

    .compare-middle {
        transform: rotate(90deg);
    }

    .snapshot-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .file-hash-checker-container {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        flex-direction: column;
        text-align: center;
    }

    .fhc-tabs {
        justify-content: center;
    }

    .fhc-tab span {
        display: none;
    }

    .fhc-tab i {
        font-size: 1.25rem;
    }

    .verify-input-group {
        flex-direction: column;
    }

    .verify-select,
    .verify-input-wrapper {
        width: 100%;
    }

    .batch-options {
        flex-direction: column;
        align-items: stretch;
    }

    .batch-actions {
        margin-left: 0;
        justify-content: center;
    }

    .hash-results-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-summary {
        grid-template-columns: 1fr 1fr;
    }

    .hash-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .drop-zone {
        padding: 1.5rem;
    }

    .drop-icon {
        font-size: 2rem;
    }

    .file-info-card {
        flex-direction: column;
        text-align: center;
    }

    .file-meta {
        justify-content: center;
    }

    .snapshot-summary {
        grid-template-columns: 1fr;
    }

    .edu-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}