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

@font-face {
  font-family: 'MesloLGSNF';
  src: url('../font/MesloLGSNerdFont-Regular.ttf') format('ttf');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

body {
    font-family: 'MesloLGSNF', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.4;
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

/* Top Navigation Bar */
.top-bar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 940px;
    background: rgba(53, 53, 53, 0.55);
    border-bottom: none;
    border-radius: 18px;
    padding: 8px 18px;
    z-index: 1000;
    box-shadow: 0 6px 32px 0 rgba(51, 51, 51, 0.25), 0 1.5px 6px 0 rgba(102, 126, 234, 0.10);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1.5px solid rgba(255,255,255,0.13);
    margin: 0 auto;
}

.top-bar-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-info h1 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.project-info p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 2px 0 0 0;
    font-weight: 500;
}

.add-dropdown {
    position: relative;
}



.add-btn {
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn {
    background: #5a67d8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 4.5px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.add-btn:hover, .login-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6a4093 100%);
    transform: translateY(-1px);
         background: #232336;
         color: #e0e0e0;
         border: 1.5px solid #35355a;
         border-radius: 8px;
         padding: 7px 14px;
         cursor: pointer;
         font-size: 0.95rem;
         font-weight: 600;
         box-shadow: 0 2px 10px rgba(30, 30, 60, 0.13);
         transition: all 0.2s cubic-bezier(.4,0,.2,1);
         text-decoration: none;
         display: inline-block;
         text-align: center;
    }
    .add-btn:hover, .login-btn:hover {
         background: #35355a;
         color: #fff;
         border-color: #667eea;
         transform: translateY(-1px) scale(1.03);
         box-shadow: 0 4px 15px rgba(30, 30, 60, 0.18);
}

/* Main content with increased top margin for enhanced header */
main {
    margin-top: 110px;
}

/* Sections */
section {
    background: rgba(54, 54, 54, 0.55);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.10);
    box-shadow: 0 2px 16px 0 rgba(30, 30, 60, 0.10);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: background 0.2s cubic-bezier(.4,0,.2,1);
}

section h2, section h3 {
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 1.1rem;
}

section h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid #404040;
    padding-bottom: 8px;
}

/* Simplified Assignment Form - Hidden by default */
.add-assignment {
    display: none;
}

.add-assignment.active {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Form Styling */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #1a1a1a;
    color: #e0e0e0;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

button:hover {
    background: #5a67d8;
}

button:active {
    transform: translateY(1px);
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
}

.modal-backdrop.active {
    display: block;
}

/* Assignment List */
.assignment-item {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assignment-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.assignment-item.completed {
    opacity: 0.6;
    background: #1a2e1a;
    border-color: #2d5a2d;
}

.assignment-item.overdue {
    border-color: #e74c3c;
    background: #2e1a1a;
}

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

.assignment-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.assignment-course {
    color: #667eea;
    font-weight: 500;
    font-size: 0.85rem;
}

.assignment-priority {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-high {
    background: #e74c3c;
    color: white;
}

.priority-medium {
    background: #f39c12;
    color: white;
}

.priority-low {
    background: #95a5a6;
    color: white;
}

.assignment-description {
    margin: 6px 0;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.assignment-due {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #c0c0c0;
}

.due-today {
    color: #e74c3c;
}

.due-soon {
    color: #f39c12;
}

.assignment-actions {
    display: flex;
    gap: 6px;
}

.assignment-actions button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
}

.complete-btn {
    background: #27ae60;
    color: white;
}

.complete-btn:hover {
    background: #219a52;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

/* Assignment Filters */
.assignment-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #404040;
    background: #2d2d2d;
    color: #a0a0a0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Notification Prompt */
.notification-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.prompt-content {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 350px;
    margin: 20px;
    border: 1px solid #404040;
}

.prompt-content h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.prompt-content p {
    color: #a0a0a0;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.prompt-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.prompt-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

#enable-notifications {
    background: #27ae60;
    color: white;
}

#disable-notifications {
    background: #666;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-state h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #a0a0a0;
}

.empty-state p {
    font-size: 0.85rem;
    color: #666;
}

/* Success/Error Messages */
.message {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    max-width: 90vw;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.message.success {
    background: #1a2e1a;
    color: #27ae60;
    border: 1px solid #2d5a2d;
}

.message.error {
    background: #2e1a1a;
    color: #e74c3c;
    border: 1px solid #5a2d2d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    main {
        margin-top: 100px;
    }
    
    .assignment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .assignment-actions {
        flex-wrap: wrap;
    }
    
    .assignment-filters {
        justify-content: center;
    }
}

/* Weekly Calendar View */
.week-view {
    margin-top: 25px;
}

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

.week-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.3rem;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-nav-btn {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #a0a0a0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.week-nav-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#current-week-range {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 200px;
    text-align: center;
}

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #404040;
    border-radius: 8px;
    overflow: hidden;
}

.week-day {
    background: #2d2d2d;
    padding: 12px 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.week-day.today {
    background: #1a3d1a;
    border: 1px solid #27ae60;
}

.week-day-header {
    font-weight: 600;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid #404040;
    padding-bottom: 4px;
}

.week-day.today .week-day-header {
    color: #27ae60;
}

.week-day-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
    text-align: center;
}

.week-day.today .week-day-date {
    color: #2ecc71;
}

.week-assignments {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.week-assignment {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.7rem;
    border-left: 2px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.week-assignment:hover {
    background: #333;
    transform: translateY(-1px);
}

.week-assignment.high {
    border-left-color: #e74c3c;
}

.week-assignment.medium {
    border-left-color: #f39c12;
}

.week-assignment.low {
    border-left-color: #95a5a6;
}

.week-assignment.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.week-assignment-title {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-assignment-course {
    color: #a0a0a0;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .week-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .week-calendar {
        grid-template-columns: 1fr;
    }
    
    .week-day {
        min-height: 80px;
    }
    
    #current-week-range {
        min-width: auto;
    }
}