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

:root {
    --primary-dark: #002731;
    --primary-light: #04708f;
    --accent-cyan: #06B6D4;
    --accent-blue: #2563EB;
    --accent-green: #16A34A;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Password Protection */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.password-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 48px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.password-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.password-input {
    width: 100%;
    padding: 16px;
    background: var(--white);
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 18px;
    font-family: inherit;
    transition: all 0.3s;
    margin-bottom: 20px;
    text-align: center;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.password-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.password-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Calendar Section */
.calendar-section {
    padding: 40px 0;
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.calendar-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    min-width: 250px;
    text-align: center;
}

.btn-nav {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-nav:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.btn-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-dark);
}

.btn-nav:hover svg {
    stroke: var(--white);
}

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

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

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

.calendar-day {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.has-event {
    border: 2px solid var(--accent-cyan);
}

.calendar-day.has-image {
    background-size: cover;
    background-position: center;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    z-index: 2;
}

.calendar-day.has-image .day-number {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.day-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.add-icon {
    font-size: 32px;
    color: var(--text-light);
    font-weight: 300;
}

.calendar-day.has-image .add-icon {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.edit-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.edit-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-dark);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

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

.modal-body {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

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

.form-file {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    border: 2px dashed #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-file:hover {
    border-color: var(--accent-cyan);
}

.image-preview {
    margin-top: 16px;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

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

.btn-modal {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
}

.btn-cancel {
    background: transparent;
    color: var(--text-light);
    border: 2px solid #E5E7EB;
}

.btn-cancel:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        padding: 8px;
    }

    .day-number {
        font-size: 14px;
    }

    .add-icon {
        font-size: 24px;
    }

    .modal-content {
        padding: 24px;
    }

    .calendar-title {
        font-size: 24px;
        min-width: 200px;
    }
}

