/* Attendance Popup CSS */
.att-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-in;
}

.att-modal {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    animation: scaleIn 0.2s ease-out;
}

.dark .att-modal {
    background-color: #111827;
    border-color: #1f2937;
}

.att-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.att-icon-bg {
    padding: 0.75rem;
    background-color: #e0e7ff;
    border-radius: 9999px;
}

.dark .att-icon-bg {
    background-color: rgba(67, 56, 202, 0.3);
}

.att-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #4f46e5;
}

.dark .att-icon {
    color: #818cf8;
}

.att-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.dark .att-title {
    color: #ffffff;
}

.att-desc {
    color: #6b7280;
    margin-bottom: 2rem;
    margin-top: 0;
}

.dark .att-desc {
    color: #9ca3af;
}

.att-error {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

.dark .att-error {
    background-color: rgba(127, 29, 29, 0.2);
    border-color: #991b1b;
}

.att-error-text {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0;
}

.dark .att-error-text {
    color: #f87171;
}

.att-error-btn {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
    text-decoration: underline;
    background: transparent;
    border: none;
    cursor: pointer;
}

.att-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.att-spinner {
    width: 2rem;
    height: 2rem;
    color: #6366f1;
    animation: spin 1s linear infinite;
}

.att-loading-text {
    color: #4b5563;
    font-size: 0.875rem;
    margin: 0;
}

.dark .att-loading-text {
    color: #d1d5db;
}

.att-loading-sub {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

.dark .att-loading-sub {
    color: #6b7280;
}

.att-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.att-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.att-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.att-btn-present {
    background-color: #22c55e;
    color: #ffffff;
}

.att-btn-present:hover {
    background-color: #16a34a;
}

.att-btn-absent {
    background-color: #ef4444;
    color: #ffffff;
}

.att-btn-absent:hover {
    background-color: #dc2626;
}

.att-btn-late {
    background-color: #eab308;
    color: #ffffff;
    grid-column: span 2 / span 2;
}

.att-btn-late:hover {
    background-color: #ca8a04;
}

.att-btn-other {
    background-color: #4b5563;
    color: #ffffff;
    grid-column: span 2 / span 2;
}

.att-btn-other:hover {
    background-color: #374151;
}

.att-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.att-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.dark .att-label {
    color: #d1d5db;
}

.att-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.dark .att-input {
    border-color: #374151;
    background-color: #1f2937;
    color: #ffffff;
}

.att-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.att-input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.att-actions {
    display: flex;
    gap: 0.75rem;
}

.att-btn-back {
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: #e5e7eb;
    color: #1f2937;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dark .att-btn-back {
    background-color: #374151;
    color: #ffffff;
}

.att-btn-back:hover {
    background-color: #d1d5db;
}

.dark .att-btn-back:hover {
    background-color: #4b5563;
}

.att-btn-submit {
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.att-btn-submit:hover {
    background-color: #4338ca;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
