/* Calendar Page Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #6b7280;
    font-weight: 500;
}

.breadcrumb-list a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Calendar Header */
.calendar-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 100px 0 40px;
    text-align: center;
}

.header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.header-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* SEO Content Section */
.seo-content-section {
    background: #f8fafc;
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-column h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

.seo-column h3 {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.seo-column p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-column ul {
    margin: 15px 0 25px 20px;
}

.seo-column li {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 8px;
}

.seo-column li strong {
    color: #1e293b;
}

/* Main Calendar Layout */
.calendar-main {
    min-height: calc(100vh - 200px);
    background: var(--background-light);
    padding: 40px 0;
}

.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    height: calc(100vh - 300px);
    min-height: 600px;
}

/* Resource Sidebar */
.resource-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.edit-resources-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.edit-resources-btn:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

/* Resource Menu */
.resource-menu {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--background-light);
    border-radius: 8px;
    cursor: grab;
    transition: var(--transition);
    border: 2px solid transparent;
    user-select: none;
}

.resource-item:hover {
    background: #e0f2fe;
    transform: translateY(-1px);
}

.resource-item:active {
    cursor: grabbing;
}

.resource-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Task dragging styles */
.study-task.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 2px dashed rgba(255,255,255,0.8);
}

.study-task:active {
    cursor: grabbing !important;
}

.resource-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.resource-name {
    font-weight: 500;
    color: var(--text-dark);
}

/* Resource Colors */
.resource-logo.uworld { background: #1e40af; }
.resource-logo.amboss { background: #f59e0b; }
.resource-logo.kaplan { background: #dc2626; }
.resource-logo.rx { background: #ef4444; }
.resource-logo.lecturio { background: #8b5cf6; }
.resource-logo.pathoma { background: #dc2626; }
.resource-logo.sketchy { background: #059669; }
.resource-logo.boards-beyond { background: #06b6d4; }
.resource-logo.osmosis { background: #10b981; }
.resource-logo.lecturio-video { background: #7c3aed; }
.resource-logo.dirty-medicine { background: #f97316; }
.resource-logo.physeo { background: #0ea5e9; }
.resource-logo.anki { background: #7c3aed; }
.resource-logo.zanki { background: #8b5cf6; }
.resource-logo.lightyear { background: #06b6d4; }
.resource-logo.pepper { background: #10b981; }
.resource-logo.first-aid { background: #ef4444; }
.resource-logo.goljan { background: #f59e0b; }
.resource-logo.brs { background: #0ea5e9; }
.resource-logo.lange { background: #84cc16; }
.resource-logo.kaplan-books { background: #dc2626; }
.resource-logo.nbme { background: #374151; }
.resource-logo.uwsa { background: #1e40af; }
.resource-logo.free120 { background: #6b7280; }
.resource-logo.kaplan-sim { background: #dc2626; }
.resource-logo.pixorize { background: #f97316; }
.resource-logo.picmonic { background: #ec4899; }
.resource-logo.ninja-nerd { background: #374151; }
.resource-logo.medbullets { background: #059669; }
.resource-logo.onlinemeded { background: #0ea5e9; }
.resource-logo.study-schedule { background: #6366f1; }
.resource-logo.review-session { background: #8b5cf6; }
.resource-logo.break-time { background: #10b981; }

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: white;
}

.sidebar-cta h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Calendar Content */
.calendar-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-grid-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 300px);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}



/* Export Options Modal */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.export-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.export-option-btn:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
    transform: translateY(-1px);
}

.export-option-btn i {
    font-size: 24px;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.export-option-btn div {
    flex: 1;
}

.export-option-btn strong {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.export-option-btn small {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-content i {
    font-size: 18px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.week-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.week-nav-btn:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.week-display {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.clear-week-btn {
    background: transparent;
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.clear-week-btn:hover {
    background: var(--error-color);
    color: white;
}

.export-pdf-btn {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-pdf-btn:hover {
    background: #047857;
    transform: translateY(-1px);
}

.export-ical-btn {
    background: #6366f1;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-ical-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: visible;
    min-height: fit-content;
}

.time-slot, .day-header, .calendar-cell {
    background: white;
    padding: 12px 8px;
    min-height: 80px;
    position: relative;
}

.day-header {
    background: var(--background-light);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 14px;
}

.time-slot {
    background: var(--background-light);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.calendar-cell {
    border: 2px dashed transparent;
    transition: var(--transition);
    cursor: pointer;
}

.calendar-cell:hover {
    background: #fef3cd;
}

.calendar-cell.drag-over {
    border-color: var(--primary-color);
    background: #dbeafe;
}

/* Time usage indicators */
.calendar-cell.slot-half-full {
    background: #fef3cd;
    border-left: 3px solid #f59e0b;
}

.calendar-cell.slot-nearly-full {
    background: #fecaca;
    border-left: 3px solid #f97316;
}

.calendar-cell.slot-full {
    background: #fecaca;
    border-left: 3px solid #dc2626;
    cursor: not-allowed;
}

.calendar-cell.slot-full:hover {
    background: #fecaca;
}

.time-usage-indicator {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 500;
    z-index: 5;
}

/* Delete Zone */
.delete-zone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    z-index: 1500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 3px dashed transparent;
}

.delete-zone.active {
    opacity: 1;
    transform: translateY(0);
}

.delete-zone.drag-over {
    border-color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(0) scale(1.05);
}

.delete-zone-content {
    text-align: center;
    pointer-events: none;
}

.delete-zone-content i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.delete-zone-content span {
    font-size: 14px;
    font-weight: 600;
}

/* Study Tasks */
.study-task {
    background: var(--primary-color);
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    user-select: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    line-height: 1.3;
}

/* Task sizing based on duration percentage within hour */
.study-task.task-mini {
    /* Very short tasks (< 15 min) */
    padding: 4px 6px;
    font-size: 10px;
}

.study-task.task-mini .task-description {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 1px;
}

.study-task.task-mini .task-time {
    font-size: 8px;
}

.study-task.task-small {
    /* Short tasks (15-30 min) */
    padding: 6px 8px;
    font-size: 11px;
}

.study-task.task-small .task-description {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.study-task.task-small .task-time {
    font-size: 9px;
}

.study-task.task-medium {
    /* Medium tasks (30-45 min) */
    padding: 8px 10px;
    align-items: flex-start;
}

.study-task.task-medium .task-description {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.study-task.task-medium .task-time {
    font-size: 10px;
}

.study-task.task-large {
    /* Large tasks (45+ min within single slot) */
    padding: 10px;
    align-items: flex-start;
}

.study-task.task-large .task-description {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.study-task.task-large .task-time {
    font-size: 10px;
}

.study-task.task-spanning {
    /* Spanning tasks that cross multiple time slots */
    padding: 12px 10px;
    align-items: flex-start;
}

.study-task.task-spanning .task-description {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.study-task.task-continuation {
    /* Continuation slots for spanning tasks */
    padding: 8px 10px;
    opacity: 0.8;
    border-top: 2px dashed rgba(255,255,255,0.5);
    margin-top: -2px;
}

.study-task.task-continuation .continuation-text {
    font-size: 11px;
    font-style: italic;
    opacity: 0.9;
}

.study-task:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Task Tooltip */
.study-task[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    max-width: 300px;
    text-align: center;
    line-height: 1.4;
    animation: tooltipFadeIn 0.2s ease-out;
}

.study-task[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.95);
    z-index: 1000;
    margin-bottom: 2px;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Expanded task view */
.study-task.expanded {
    min-height: auto;
    white-space: normal;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.study-task.expanded .task-description {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Task interaction states */
.study-task:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.study-task.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-description {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.task-time {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.study-task .task-checkbox {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}

.study-task .task-checkbox.checked {
    background: rgba(255,255,255,0.8);
}

.study-task .task-checkbox::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 1px;
    font-size: 8px;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.study-task .task-checkbox.checked::after {
    opacity: 1;
}

/* Task Colors by Resource */
.study-task.uworld { background: #1e40af; }
.study-task.amboss { background: #f59e0b; }
.study-task.kaplan { background: #dc2626; }
.study-task.rx { background: #ef4444; }
.study-task.lecturio { background: #8b5cf6; }
.study-task.pathoma { background: #dc2626; }
.study-task.sketchy { background: #059669; }
.study-task.boards-beyond { background: #06b6d4; }
.study-task.osmosis { background: #10b981; }
.study-task.lecturio-video { background: #7c3aed; }
.study-task.dirty-medicine { background: #f97316; }
.study-task.physeo { background: #0ea5e9; }
.study-task.anki { background: #7c3aed; }
.study-task.zanki { background: #8b5cf6; }
.study-task.lightyear { background: #06b6d4; }
.study-task.pepper { background: #10b981; }
.study-task.first-aid { background: #ef4444; }
.study-task.goljan { background: #f59e0b; }
.study-task.brs { background: #0ea5e9; }
.study-task.lange { background: #84cc16; }
.study-task.kaplan-books { background: #dc2626; }
.study-task.nbme { background: #374151; }
.study-task.uwsa { background: #1e40af; }
.study-task.free120 { background: #6b7280; }
.study-task.kaplan-sim { background: #dc2626; }
.study-task.pixorize { background: #f97316; }
.study-task.picmonic { background: #ec4899; }
.study-task.ninja-nerd { background: #374151; }
.study-task.medbullets { background: #059669; }
.study-task.onlinemeded { background: #0ea5e9; }
.study-task.study-schedule { background: #6366f1; }
.study-task.review-session { background: #8b5cf6; }
.study-task.break-time { background: #10b981; }

/* Custom resource tasks get a default purple gradient */
.study-task[class*="custom-"] { 
    background: linear-gradient(135deg, #6366f1, #8b5cf6); 
}
.resource-logo[class*="custom-"] { 
    background: linear-gradient(135deg, #6366f1, #8b5cf6); 
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    text-align: right;
}

/* Resource Options */
.resource-options {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

.resource-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.category-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.resource-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.resource-option:hover {
    border-color: var(--primary-color);
    background: #dbeafe;
}

.resource-option.selected {
    border-color: var(--primary-color);
    background: #dbeafe;
}

.resource-option .resource-logo {
    margin-bottom: 8px;
}

.resource-option .resource-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.resource-option {
    position: relative;
}

.remove-custom {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.resource-option:hover .remove-custom {
    opacity: 1;
}

.add-custom-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.add-custom-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.add-custom-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Task Form */
.task-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-form label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: block;
}

.task-form input, .task-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
}

.task-form input:focus, .task-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
}

.custom-duration {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
    }
}

.time-preview {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.time-preview i {
    color: var(--primary-color);
}

.task-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Smart Prompts */
.smart-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 1500;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.prompt-content {
    padding: 20px;
    position: relative;
}

.prompt-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

.prompt-text {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.prompt-actions {
    display: flex;
    gap: 8px;
}

.prompt-actions .cta-button {
    padding: 8px 16px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calendar-container {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
    }
    
    .resource-sidebar {
        order: 2;
        height: 300px;
    }
    
    .calendar-content {
        order: 1;
        min-height: 500px;
    }
    
    .calendar-grid-container {
        max-height: calc(100vh - 250px);
    }
    
    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
        font-size: 12px;
    }
    
    .time-slot, .day-header, .calendar-cell {
        padding: 8px 4px;
        min-height: 60px;
    }
    
    .study-task {
        font-size: 11px;
        padding: 6px 8px;
        min-height: 24px;
    }
    
    .calendar-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .export-pdf-btn, .clear-week-btn, .export-ical-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .smart-prompt {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px;
        max-width: none;
    }
    
    .category-resources {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .task-time {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .calendar-header {
        padding: 100px 0 40px;
    }
    
    .header-content h1 {
        font-size: 32px;
    }
    
    .header-content p {
        font-size: 16px;
    }
    
    .calendar-main {
        padding: 20px 0;
    }
    
    .calendar-container {
        padding: 0 16px;
    }
    
    .calendar-grid {
        grid-template-columns: 40px repeat(7, 1fr);
        font-size: 10px;
    }
    
    .day-header, .time-slot, .calendar-cell {
        min-height: 40px;
        padding: 4px;
    }
    
    .resource-item {
        padding: 12px;
    }
    
    .resource-logo {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .seo-column h2 {
        font-size: 1.4rem;
    }
    
    .seo-column h3 {
        font-size: 1.1rem;
    }
} 