/* Primary Color Scheme */
:root {
    --primary-color: #4a6fa5;     /* Main brand color */
    --secondary-color: #6c757d;   /* Secondary color */
    --success-color: #28a745;     /* Success messages */
    --danger-color: #dc3545;      /* Error messages */
    --light-bg: #f8f9fa;          /* Light background */
    --dark-bg: #343a40;           /* Dark background */
}

/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
}

/* Dashboard Widgets */
.dashboard-widget {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-widget {
        margin-bottom: 1rem;
    }
}

/* Custom Utility Classes */
.rounded-lg {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Custom Badges */
.badge-primary {
    background-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Custom Alert */
.alert-custom {
    border-left: 4px solid var(--primary-color);
    border-radius: 0;
}

/* Profile Image */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Calendar Styling */
.fc-event {
    background-color: var(--primary-color);
    border: none;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
}

/* Custom Table */
.table-custom thead th {
    background-color: var(--light-bg);
    border-bottom: 2px solid #dee2e6;
}

/* Custom Tabs */
.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: #dee2e6 #dee2e6 #fff;
    border-top: 3px solid var(--primary-color);
}

/* Animation for alerts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5a8a;
}
