/* static/css/styles.css */

/* General Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --dark-color: #333;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

/* Logo Styles */
.navbar-brand img {
    max-height: 40px;
    width: auto;
    border-radius: 4px;
}

.login-logo img {
    max-height: 60px;
    width: auto;
    border-radius: 8px;
}

/* Sidebar */
#sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    background-color: white;
    border-bottom: 2px solid #f0f0f0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3d8b40;
    border-color: #3d8b40;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

/* Loading Spinner */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
    }
    
    main {
        margin-top: 20px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}