/* Variables CSS */
:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Customization */
.navbar {
    min-height: 70px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-card {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: none;
    border-radius: 10px;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), #004499);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 30px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #004499);
    color: white;
}

.stat-card .display-4 {
    font-weight: 300;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0,102,204,0.05);
}

/* Progress Bars */
.progress {
    height: 25px;
    border-radius: 15px;
}

.progress-bar {
    font-size: 14px;
    line-height: 25px;
}

/* Status Badges */
.badge-planifie {
    background-color: var(--secondary-color);
}

.badge-en_cours {
    background-color: var(--primary-color);
}

.badge-termine {
    background-color: var(--success-color);
}

.badge-suspendu {
    background-color: var(--warning-color);
}

/* Task Type Colors */
.task-production {
    border-left: 4px solid var(--success-color);
}

.task-reunion {
    border-left: 4px solid var(--info-color);
}

.task-formation {
    border-left: 4px solid var(--warning-color);
}

.task-support {
    border-left: 4px solid var(--danger-color);
}

.task-gestion {
    border-left: 4px solid var(--secondary-color);
}

.task-autre {
    border-left: 4px solid var(--dark-color);
}

/* Time Registration Form */
.time-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

/* Client Dashboard */
.project-timeline {
    position: relative;
    padding-left: 30px;
}

.project-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 25px !important;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004499;
}