:root {
    --bg-color: #000000;
    --sidebar-bg: rgba(10, 10, 10, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar.hidden {
    width: 0;
    padding: 0;
    border-right: none;
}

.logo h2 {
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.top-bar h1 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.status-indicator {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    background: var(--glass-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.status-indicator::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    font-weight: 400;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 500;
    margin-top: 8px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.chart-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: calc(100% - 220px);
}

.left-col,
.right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    font-weight: 500;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    resize: none;
    height: 140px;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
}

.action-row {
    display: flex;
    gap: 12px;
}

select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0 16px;
    color: var(--text-primary);
    flex: 1;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
}

select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn {
    background: var(--text-primary);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.primary-btn:disabled {
    opacity: 0.5;
    color: #fca5a5;
}

/* Console */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
    border-radius: 4px;
}

.icon-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.console-log {
    height: 350px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-entry {
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid transparent;
    line-height: 1.5;
}

.log-entry.info {
    border-left-color: var(--accent-color);
    color: var(--text-secondary);
}

.log-entry.success {
    border-left-color: var(--success);
    color: #a7f3d0;
}

.log-entry.error {
    border-left-color: var(--error);
    color: #fca5a5;
}

.log-entry.warning {
    border-left-color: var(--warning);
    color: #fde68a;
}

/* Review List */
.review-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.review-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.review-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.action-group {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-approve {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-approve:hover {
    background: rgba(16, 185, 129, 0.2);
}

.btn-discard {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-discard:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.review-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.action-group {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-approve {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-approve:hover {
    background: rgba(16, 185, 129, 0.2);
}

.btn-discard {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-discard:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 900;
}

.sidebar-overlay.active {
    display: block;
}

/* Watermark */
.watermark {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: auto;
}

.watermark a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.watermark a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        height: 100%;
        z-index: 1000;
        width: 260px;
        left: 0;
        top: 0;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .sidebar.hidden {
        width: 260px;
        transform: translateX(-100%);
        padding: 24px;
        border-right: 1px solid var(--glass-border);
    }

    .main-content {
        padding: 16px;
        padding-bottom: 100px;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .left-col,
    .right-col {
        height: auto;
    }

    .glass-panel {
        padding: 16px;
    }

    textarea {
        height: 100px;
    }

    .console-log {
        height: 250px;
    }

    .review-actions {
        flex-direction: column;
        gap: 12px;
    }

    .action-group {
        width: 100%;
        justify-content: space-between;
    }
}