/* Tigers Universal Attendance - Frontend Styles */
.tua-attendance-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 600px;
    margin: 40px auto;
    color: white;
    position: relative;
    overflow: hidden;
}

.tua-attendance-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0);
}

.tua-header {
    text-align: center;
    margin-bottom: 30px;
}

.tua-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.tua-date {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.tua-current-status {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-card h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #FFD700;
    text-align: center;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-item .label {
    font-weight: 500;
    opacity: 0.8;
}

.status-item .value {
    font-weight: 600;
    font-size: 16px;
}

.status-item .value.highlight {
    color: #4CAF50;
    font-weight: 700;
}

.status-item .value.active {
    color: #4CAF50;
}

.status-item .value.inactive {
    color: #FF5252;
}

.status-badge {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.status-badge.active {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.status-badge.inactive {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF5252;
}

.tua-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tua-btn {
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.tua-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tua-btn:active {
    transform: translateY(-1px);
}

.tua-btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.tua-btn-success {
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: white;
}

.tua-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tua-btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

.tua-btn .icon {
    font-size: 20px;
}

.tua-notes-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tua-notes-section h4 {
    margin: 0 0 15px 0;
    color: #FFD700;
}

#tua-notes {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#tua-notes:focus {
    outline: none;
    border-color: #4CAF50;
}

.notes-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tua-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tua-message-loading {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

.tua-message-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.tua-message-error {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF5252;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tua-existing-notes {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #9C27B0;
}

.tua-existing-notes h4 {
    margin: 0 0 10px 0;
    color: #E1BEE7;
}

.tua-existing-notes p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.tua-stats-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    margin: 20px 0;
}

.tua-stats-widget h3 {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
    .tua-attendance-form {
        margin: 20px;
        padding: 20px;
    }
    
    .tua-header h2 {
        font-size: 24px;
    }
    
    .tua-btn {
        min-width: 100%;
    }
    
    .tua-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
body.rtl .status-item {
    flex-direction: row-reverse;
}

body.rtl .tua-btn {
    flex-direction: row-reverse;
}

body.rtl .tua-message {
    flex-direction: row-reverse;
}
