
/* Calendar Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    color: #e0e0e0;
    margin: 5% auto;
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#calendar-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.animated-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}

.animated-input i {
    margin-right: 8px;
    color: #ff6b6b;
}

.animated-input input,
.animated-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #444;
    border-radius: 10px;
    font-size: 15px;
    background-color: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

.animated-input input:focus,
.animated-input textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.animated-input input:focus ~ .input-focus-effect,
.animated-input textarea:focus ~ .input-focus-effect {
    width: 100%;
}

.toggle-container {
    margin: 20px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-inner {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ff6b6b;
    border-radius: 20px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.toggle-inner:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-label .toggle-inner {
    background-color: #ff6b6b;
}

.toggle-switch input:checked + .toggle-label .toggle-inner:before {
    transform: translateX(24px);
}

.toggle-switch-label {
    font-weight: 500;
    color: #e0e0e0;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.calendar-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    min-width: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
}

.cancel-btn {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
}

/* Light mode styles */
body:not(.dark-mode) .modal-content {
    background: #f5f5f5;
    color: #333;
}

body:not(.dark-mode) .animated-input label {
    color: #333;
}

body:not(.dark-mode) .animated-input input,
body:not(.dark-mode) .animated-input textarea {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
}

body:not(.dark-mode) .toggle-switch-label {
    color: #333;
}
