/* Calendar styles */
#calendar {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}


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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

#eventForm input,
#eventForm textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#eventForm textarea {
    min-height: 100px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#eventForm button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

#eventForm button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

#eventForm button[type="submit"]:hover {
    background-color: #45a049;
}

#deleteEvent {
    background-color: #f44336;
    color: white;
}

#deleteEvent:hover {
    background-color: #da190b;
}

/* Admin-specific styles */
.admin-only {
    display: none;
}

/* Event display styles */
.event-details {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.event-date {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-description {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
}

/* Message styles */
.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0 0 10px 0;
}

.user-message {
    color: #666;
    font-style: italic;
    margin: 0;
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
}

.admin-message {
    margin: 0 0 20px 0;
    padding: 10px 15px;
    background-color: #e8f5e9;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.admin-message p {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
}

.no-events {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin: 10px 0;
}
