:root {
    --bg-color: #030303;
    --sidebar-bg: #030303;
    --card-bg: #080808;
    --card-border: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #444444;
    --accent: #141414;
    --accent-hover: #222222;
    --border-color: #1f1f1f;
    --active-gradient: linear-gradient(90deg, #181818 0%, #111111 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
}

.sidebar-header h2 {
    font-weight: 800;
    font-size: 22px;
    font-style: italic;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
    background: var(--active-gradient);
    color: var(--text-primary);
    border: 1px solid #222;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.nav-item i {
    font-size: 20px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-primary, .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 24px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #111;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    border-color: #444;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.create-post-btn {
    width: 100%;
}

.user-profile-snippet {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-profile-snippet:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 40px;
}

.top-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-btn:hover {
    color: var(--text-primary);
}

.icon-btn.small {
    font-size: 14px;
}

.content-wrapper {
    padding: 0 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.title-section h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.text-glow {
    color: #888;
}

.title-section p {
    color: var(--text-secondary);
    font-size: 15px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 36px;
    padding: 24px;
}

/* Date Selector */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 16px 30px;
    border-radius: 100px;
}

.dates-container {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.date-item.active {
    color: var(--text-primary);
    position: relative;
}

.active-pill-bg {
    position: absolute;
    width: 54px;
    height: 70px;
    border: 1px solid #333;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 40px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 0;
    pointer-events: none;
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    opacity: 0;
}

.date-item > * {
    z-index: 1;
    position: relative;
}

.date-day-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.date-day-num {
    font-size: 22px;
    font-weight: 600;
}

.date-item.active .date-day-num {
    font-size: 26px;
    font-weight: 700;
}

.current-indicator {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 14px;
    z-index: 2;
}

/* Today's Schedule */
.schedule-section {
    min-height: 300px;
}

.schedule-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-muted);
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Timeline Item (for when data is added) */
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background-color: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24.5px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    border: 3px solid var(--bg-color);
    z-index: 2;
}

.timeline-item.active::before {
    background-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.timeline-item-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.timeline-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background-color: #1a1a1a;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Calendar Widget */
.calendar-widget {
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 13px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.day-name {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.calendar-days {
    display: contents;
}

.cal-day {
    font-size: 13px;
    color: var(--text-muted);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    border: 1px solid transparent;
}

.cal-day.current-month {
    color: var(--text-primary);
}

.cal-day.active {
    border-color: #555;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
}

.cal-day:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.current-indicator-cal {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 10px;
    z-index: 2;
}

/* Critical Deadlines */
.deadlines-widget {
    padding: 24px;
}

.widget-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state.small {
    padding: 20px 0;
    font-size: 12px;
}

/* Deadline Item (for when data is added) */
.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.deadline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deadline-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.deadline-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.deadline-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.deadline-indicator.red {
    background-color: #ff4444;
}

.deadline-indicator.grey {
    background-color: #555555;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-input {
    width: 100%;
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: #333;
    background-color: #151515;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.status-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.status-message.hidden {
    display: none;
}

.status-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-message.loading {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid #333;
}

/* Upload Page Styles */
.upload-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
}

.greeting-text {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* SPA View Animations */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-transition {
    animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Upload Zone & Form Styles */
.upload-zone-card, .caption-card {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-radius: 20px;
    padding: 30px !important;
}

.upload-zone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.upload-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.upload-zone-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-zone-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

.scheduling-inputs {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.schedule-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
}

.schedule-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Notification Pill Expansion */
.notification-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 24px;
    height: 40px;
    width: 40px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.notification-pill:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.notification-pill.expanded {
    width: auto;
    padding: 0 16px;
    background-color: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.notification-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2ecc71;
    white-space: nowrap;
    transition: all 0.3s;
}

.notification-pill.expanded .notification-text {
    opacity: 1;
    width: auto;
    margin-left: 8px;
}

/* 2-Column Upload View */
.upload-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1000px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-flex h3 {
    font-size: 18px;
    font-weight: 600;
}

.view-all-link {
    font-size: 14px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.queue-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 500;
}

.queue-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-stats .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.queue-stats .dot.blue { background-color: #4f46e5; }
.queue-stats .dot.red { background-color: #e74c3c; }

.mini-calendar {
    margin-bottom: 15px;
}

.mini-cal-header, .mini-cal-days {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.mini-cal-days {
    margin-top: 8px;
    color: var(--text-primary);
}

.mini-cal-days span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mini-cal-days span.active {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sticky Header with Blur */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
