/* Modern Attendance Popup Styles */

.att-modal-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.att-modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.att-modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.att-modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.att-modal-body {
    padding: 2rem;
}

.att-day-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
}

.att-date-badge {
    text-align: center;
}

.att-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.att-date-badge .month {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.att-status-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.att-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pill-present { background: #dcfce7; color: #166534; }
.pill-absent { background: #fee2e2; color: #991b1b; }
.pill-late { background: #fef9c3; color: #854d0e; }
.pill-pending { background: #f1f5f9; color: #475569; }

/* Tabs Styling */
.att-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.att-tab {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.att-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.att-tab-content {
    display: none;
}

.att-tab-content.active {
    display: block;
}

/* Form Styling */
.att-form-group {
    margin-bottom: 1.25rem;
}

.att-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.att-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.938rem;
    transition: all 0.3s;
}

.att-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.att-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.att-btn-primary {
    background: #2563eb;
    color: white;
}

.att-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Success State */
.att-success-view {
    text-align: center;
    padding: 2rem 0;
}

.att-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Manager View Styles */
.manager-approval-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.manager-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-approve { background: #16a34a; color: white; border-radius: 8px; flex: 1; padding: 0.75rem; border: none; font-weight: 600; cursor: pointer; }
.btn-reject { background: #dc2626; color: white; border-radius: 8px; flex: 1; padding: 0.75rem; border: none; font-weight: 600; cursor: pointer; }

/* Pulse animation for clicking */
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.attendance-badge:active {
    animation: clickPulse 0.2s ease-out;
}
