/* ==================== BASE STYLES ==================== */
* { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
}

body {
    background: #000;
    color: #fff;
}

/* ==================== GLASS EFFECTS ==================== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin: 20px;
    height: calc(100vh - 40px);
}

.sidebar-wrapper {
    display: flex;
    align-items: center;
    padding: 150px 0;
    height: 100vh;
}

/* ==================== CARDS ==================== */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-card {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== NAVIGATION ==================== */
.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(10, 132, 255, 0.2);
    color: #0a84ff;
}

/* ==================== CALENDAR ==================== */
.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
    background: rgba(10, 132, 255, 0.3);
    border-color: #0a84ff;
}

.week-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.week-row.selected {
    background: rgba(10, 132, 255, 0.15);
}

/* ==================== INPUTS ==================== */
.input-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s ease;
}

.input-dark:focus {
    outline: none;
    border-color: #0a84ff;
    background: rgba(255, 255, 255, 0.08);
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Custom select */
select.input-dark {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select.input-dark option {
    background: #0f0f0f;
    color: #fff;
}

/* ==================== SCROLLBAR ==================== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

* {
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== BADGES ==================== */
.badge-red { background: #ff453a; }
.badge-yellow { background: #ffd60a; color: #000; }
.badge-green { background: #30d158; }

/* ==================== POST SLOTS ==================== */
.post-slot {
    min-height: 60px;
    transition: all 0.2s ease;
}

.post-slot:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-toggle {
    transition: all 0.2s ease;
}

.social-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.custom-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.custom-checkbox::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: transparent;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background: rgba(10, 132, 255, 0.25);
    border-color: rgba(10, 132, 255, 0.8);
}

.custom-checkbox:checked::after {
    background: #0a84ff;
    transform: scale(1);
}
.toggle-switch.active {
    background: #30d158;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.active::after {
    left: 22px;
}

.month-plan-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.month-plan-pill span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.month-plan-pill strong {
    font-size: 14px;
    color: #fff;
}

.badge-manual {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.badge-rubric {
    background: rgba(250, 204, 21, 0.2);
    color: #fde68a;
}

.badge-parser {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}
