/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient-start: #0a0b10;
    --bg-gradient-end: #121420;
    --panel-bg: rgba(20, 24, 38, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-color: #06b6d4;
    
    /* Action colors */
    --badge-new: #10b981;
    --badge-increase: #f59e0b;
    --badge-decrease: #3b82f6;
    --badge-nochange: #6b7280;
    --badge-deleted: #ef4444;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1c1e30 0%, var(--bg-gradient-start) 50%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism card/panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

/* Navbar */
.navbar-custom {
    background: rgba(10, 11, 16, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.2px;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--panel-border);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Tables */
.table-custom {
    color: var(--text-primary) !important;
}

.table-custom th, .table-custom td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-bottom: 1px solid var(--panel-border) !important;
}

.table-custom th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
}

/* Text color helpers override for dark mode */
.text-secondary, .text-muted {
    color: var(--text-secondary) !important;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Badges for Action Types */
.badge-rate-new {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--badge-new);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-rate-increase {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--badge-increase);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-rate-decrease {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--badge-decrease);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-rate-nochange {
    background-color: rgba(107, 114, 128, 0.15);
    color: var(--badge-nochange);
    border: 1px solid rgba(107, 114, 128, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-rate-deleted {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--badge-deleted);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Forms */
.form-control-custom {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-select-custom {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.form-select-custom:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Dashboard Stat Card */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Modal customization */
.modal-content-custom {
    background-color: #121420;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    color: var(--text-primary);
}

.modal-header-custom {
    border-bottom: 1px solid var(--panel-border);
    padding: 1.25rem;
}

.modal-footer-custom {
    border-top: 1px solid var(--panel-border);
    padding: 1.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gradient-start);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}