/* static/css/style.css */

/* انیمیشن‌های پیشرفت */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* وضعیت حضور */
.attendance-status .fa-circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* نوتیفیکیشن‌های سیستم */
#systemNotifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
}

#systemNotifications .alert {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* app/static/css/style.css */

/* ============================================ */
/* تنظیمات پایه */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'IRANSans', Tahoma, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================================ */
/* Navbar */
/* ============================================ */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar .nav-link.active {
    background-color: rgba(255,255,255,0.15);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item.active {
    background-color: #667eea;
    color: white;
}

/* ============================================ */
/* Flash Messages */
/* ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-dismissible .btn-close {
    padding: 12px;
}

/* ============================================ */
/* Footer */
/* ============================================ */
footer {
    margin-top: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    transform: translateX(-5px);
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

/* ============================================ */
/* Cards */
/* ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* ============================================ */
/* Buttons */
/* ============================================ */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    border: none;
    color: #333;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 153, 74, 0.4);
}

/* ============================================ */
/* Forms */
/* ============================================ */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
}

/* ============================================ */
/* Avatar */
/* ============================================ */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================ */
/* Badge */
/* ============================================ */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================ */
/* Responsive */
/* ============================================ */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .dropdown-menu {
        border-radius: 0;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* ============================================ */
/* Animations */
/* ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================ */
/* Custom Scrollbar */
/* ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ============================================ */
/* Notification Badge */
/* ============================================ */
#notification-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin-top: -5px;
}

/* ============================================ */
/* Utility Classes */
/* ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(63, 62, 62, 0.1);
}

.hover-card {
    transition: transform 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
}