/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-nav {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(116,185,255,0.3);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(45,52,54,0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Calendar Section */
.calendar-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.calendar-header {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.calendar-header h2 {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calendar-grid {
    padding: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    margin-bottom: 1px;
}

.weekday {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-color: #74b9ff;
    color: white;
    box-shadow: 0 4px 15px rgba(116,185,255,0.3);
}

.calendar-day.today .day-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-indicator {
    background: #007bff;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
    margin-bottom: 0.125rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.project-indicator:hover {
    transform: scale(1.05);
}

.project-indicator.priority-high {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.project-indicator.priority-medium {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
    box-shadow: 0 2px 8px rgba(253,203,110,0.3);
}

.project-indicator.priority-low {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 2px 8px rgba(0,184,148,0.3);
}

/* Project Sidebar */
.project-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255,255,255,0.2);
}

.sidebar-content {
    padding: 1.5rem;
}

.project-details h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.project-details p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-meta-label {
    font-weight: 600;
    color: #495057;
}

.project-meta-value {
    color: #6c757d;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Upcoming Deadlines */
.upcoming-deadlines {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.upcoming-deadlines h3 {
    padding: 1.5rem;
    margin: 0;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.upcoming-list {
    padding: 1rem;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-left: 4px solid #74b9ff;
    background: linear-gradient(135deg, rgba(116,185,255,0.1) 0%, rgba(116,185,255,0.05) 100%);
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upcoming-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(116,185,255,0.2);
}

.upcoming-item.priority-high {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,107,107,0.05) 100%);
}

.upcoming-item.priority-medium {
    border-left-color: #fdcb6e;
    background: linear-gradient(135deg, rgba(253,203,110,0.1) 0%, rgba(253,203,110,0.05) 100%);
}

.upcoming-item.priority-low {
    border-left-color: #00b894;
    background: linear-gradient(135deg, rgba(0,184,148,0.1) 0%, rgba(0,184,148,0.05) 100%);
}

.upcoming-item-content {
    flex: 1;
}

.upcoming-item-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.upcoming-item-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.upcoming-item-date {
    font-weight: 600;
    color: #495057;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: white;
    transform: scale(1.1);
}

.project-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-controls {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .calendar-day {
        min-height: 80px;
    }

    .upcoming-deadlines {
        padding: 0 1rem;
    }

    .upcoming-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .radio-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .calendar-weekdays,
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
    }

    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }

    .project-indicator {
        font-size: 0.6rem;
        padding: 0.125rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}
