/* General Body and Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0B1120;
    color: #E2E8F0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text */
.main-gradient-text {
    background: linear-gradient(90deg, #34D399, #A7F3D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #059669;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #1e293b;
    border-color: #475569;
}

.btn-danger {
    background-color: #991b1b;
    color: white;
}

.btn-danger:hover {
    background-color: #7f1d1d;
}


/* Forms & Inputs */
.input-field {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #E2E8F0;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    outline: none;
}
textarea.input-field {
    min-height: 120px;
}

/* --- NEW UNIFIED SIDEBAR NAVIGATION STYLES --- */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #94a3b8; /* text-slate-400 */
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #1e293b; /* bg-slate-800 from your old style */
    color: #e2e8f0; /* text-slate-200 */
}

.nav-link.active {
    background-color: #059669; /* Your active green color */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.nav-link svg {
    margin-right: 0.75rem;
    width: 1.5rem; /* h-6, w-6 */
    height: 1.5rem;
    flex-shrink: 0;
}
/* --- END NEW SIDEBAR STYLES --- */


/* Header */
.header {
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    z-index: 10;
}

/* Score Indicators */
.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.score-high {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.score-medium {
    background-color: rgba(245, 159, 11, 0.1);
    color: #f59e0b;
}
.score-low {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Alerts and Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-width: 1px;
    border-style: solid;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #6EE7B7;
    border-color: #10B981;
}
.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border-color: #EF4444;
}

/* Quill Editor Styles */
.ql-toolbar {
    border-radius: 0.5rem 0.5rem 0 0;
    background: #334155 !important;
    border-color: #475569 !important;
}
.ql-container {
    border-radius: 0 0 0.5rem 0.5rem;
    background-color: #1e293b;
    border-color: #475569 !important;
    font-size: 1rem;
    color: #E2E8F0;
}
.ql-editor { 
    padding: 1rem;
}
.ql-snow .ql-stroke { stroke: #cbd5e1; }
.ql-snow .ql-picker-label { color: #cbd5e1 !important; }
.ql-snow .ql-tooltip { background: #1e293b; border-color: #475569; color: #E2E8F0; }
.ql-snow .ql-tooltip input { background: #334155; color: #E2E8F0; }
.ql-snow .ql-tooltip a.ql-action::after { content: 'Save'; }
.ql-editor.ql-blank::before {
    color: rgba(203, 213, 225, 0.5);
    font-style: normal;
    left: 1rem;
    top: 1rem;
}


/* Tab Styles */
.tab-button {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}
.tab-button.active {
    color: #34d399;
    border-bottom-color: #34d399;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Accordion Styles */
.accordion-toggle svg {
    transition: transform 0.2s ease-in-out;
}
.accordion-content {
    display: none;
    padding-top: 1rem;
}
.accordion-content.open {
    display: block;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Rank Tracker Result Styles */
.result-card {
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.result-card.featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid #10B981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}
.result-card.not-featured, .result-card.no-overview {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid #334155;
}
.reference-list li {
    background: rgba(30, 41, 59, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #334155;
    transition: all 0.2s ease;
}
.reference-list li:hover {
    background: rgba(30, 41, 59, 0.8);
    border-left-color: #34D399;
}
.reference-list li.featured-ref {
    border-left-color: #A7F3D0;
    background: rgba(16, 185, 129, 0.15);
}

.rank-badge-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.rank-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}
.rank-badge.featured {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}
.rank-badge.not-featured {
    background-color: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

#modal-close-btn {
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
}

.message-box {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}
.warning-message {
    background-color: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
}

.usage-info {
     background-color: #1e293b;
    border-color: #334155;
    color: #9ca3af;
}
