/* Event Entry Modal Styles */
#event-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

#event-modal .modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

#event-modal .modal-content.compact {
    max-width: 500px;
}

#event-modal .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#event-modal .modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

#event-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#event-modal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#event-modal .modal-body {
    padding: 25px;
}

/* Event Type Grid */
.event-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.event-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: #666;
}

.event-type-btn:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.event-type-btn.active {
    border-color: #3498db;
    background: #e3f2fd;
    color: #2980b9;
}

.event-type-btn .event-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.event-type-btn .event-label {
    font-size: 11px;
    text-align: center;
}

/* Form Elements */
#event-modal .form-group {
    margin-bottom: 15px;
}

#event-modal label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

#event-modal .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#event-modal .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#event-modal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Quick Templates */
.quick-templates {
    margin-bottom: 20px;
}

.quick-templates label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}

.template-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-chip {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.template-chip:hover {
    background: #e3f2fd;
    border-color: #3498db;
    color: #2980b9;
}

/* Form Actions */
#event-modal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#event-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#event-modal .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    flex: 1;
}

#event-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#event-modal .btn-secondary {
    background: #f1f3f5;
    color: #495057;
    min-width: 90px;
}

#event-modal .btn-secondary:hover {
    background: #e9ecef;
}

#event-modal .btn-icon {
    font-size: 16px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.toast-info {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    #event-modal .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    #event-modal .modal-body {
        padding: 20px;
    }
    
    .event-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .event-type-btn {
        padding: 10px 6px;
    }
    
    #event-modal .form-actions {
        flex-direction: column;
    }
    
    #event-modal .btn {
        width: 100%;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #event-modal .modal-content {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    #event-modal .form-control {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    #event-modal .form-control:focus {
        border-color: #3498db;
        background-color: #333;
    }
    
    .event-type-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }
    
    .event-type-btn:hover {
        background: #333;
        border-color: #3498db;
    }
    
    .event-type-btn.active {
        background: #1e3a5f;
        border-color: #3498db;
        color: #64b5f6;
    }
    
    .template-chip {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }
    
    .template-chip:hover {
        background: #1e3a5f;
        border-color: #3498db;
        color: #64b5f6;
    }
    
    #event-modal label {
        color: #ccc;
    }
    
    #event-modal .form-actions {
        border-top-color: #444;
    }
}
