/* 3D Styled Container */
.eac-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #1a3c6b, #2a5c9b);
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 51, 153, 0.4);
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}

.eac-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.5);
}

.eac-container h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.eac-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #ffffff;
}

.eac-container input, .eac-container select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    color: #000000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eac-container input:focus, .eac-container select:focus {
    outline: none;
    border: 2px solid #00cc99;
    box-shadow: 0 0 5px #00cc99;
}

.eac-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #00cc99;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #008060;
    transition: all 0.3s ease;
}

.eac-container button:hover {
    background: #00b386;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 204, 153, 0.3);
}

#delete-attendance {
    background: #d9534f;
    box-shadow: 0 3px 0 #a71d2a;
}

#delete-attendance:hover {
    background: #c9302c;
    box-shadow: 0 6px 12px rgba(217, 83, 79, 0.3);
}

#view-summary, #close-summary {
    background: #5bc0de;
    box-shadow: 0 3px 0 #357b94;
}

#view-summary:hover, #close-summary:hover {
    background: #31b0d5;
    box-shadow: 0 6px 12px rgba(91, 192, 222, 0.3);
}

#summary-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#summary-content th, #summary-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    color: #000000;
}

#summary-content th {
    background: #f5f5f5;
    font-weight: bold;
}

#summary-content td {
    color: #000000;
}

#login-error {
    margin-top: 10px;
    font-size: 14px;
    color: #ff0000;
}

#eac-notice {
    margin-top: 20px;
    background: #ffeb3b;
    color: #000000;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* Override FullCalendar styles for 3D look and full date box coloring */
.fc-daygrid-day {
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #000000;
    font-size: 12px;
}

.fc-daygrid-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.fc-daygrid-day.fc-day-past, .fc-daygrid-day.fc-day-future, .fc-daygrid-day.fc-day-today {
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fc-daygrid-day.fc-day-today {
    background: linear-gradient(135deg, #e0f0ff, #b3d4ff);
}

.fc-event {
    border: none !important;
    border-radius: 8px;
    padding: 2px 5px;
    color: #000000 !important;
    font-size: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive design */
@media (max-width: 768px) {
    .eac-container {
        padding: 15px;
    }

    .eac-container input, .eac-container select {
        max-width: 100%;
    }

    .eac-container button {
        width: 100%;
        margin-bottom: 10px;
    }

    #eac-controls {
        text-align: center;
    }

    #summary-content table {
        font-size: 14px;
    }

    .fc-daygrid-day {
        padding: 5px;
    }
}