/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

/* ===== LAYOUT ===== */
.main-content {
    margin-top: 76px;
    margin-bottom: 80px;
    min-height: calc(100vh - 156px);
    padding: 20px 0;
}

.container {
    max-width: 1200px;
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-brand img {
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--light-color) !important;
}

.nav-link.router-link-active {
    color: var(--warning-color) !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 60px;
}

.bottom-nav .nav-item:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

.bottom-nav .nav-item.router-link-active {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 10px 20px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: var(--dark-color);
}

/* ===== FORMS ===== */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    padding: 12px 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* ===== TABLES ===== */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table tbody td {
    padding: 15px;
    border-color: #e9ecef;
    vertical-align: middle;
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-pending {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: var(--dark-color);
}

.badge-approved {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
}

.badge-rejected {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: var(--border-radius);
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 65px;
        padding: 10px 0;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .bottom-nav .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 0.7rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ===== CUSTOM COMPONENTS ===== */
.navigation-section {
    margin: 30px 0;
}

.page-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    height: 100%;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-card .btn {
    width: 100%;
    max-width: 200px;
}

/* ===== RESPONSIVE COMPONENTS ===== */
/* Mobile-first responsive cards */
.mobile-card-responsive {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .mobile-card-responsive {
        padding: 20px 15px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .page-card-icon {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 8px;
    }
    
    .page-card-title-mobile {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .page-card-desc-mobile {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .welcome-section h1 {
        font-size: 1.75rem;
    }
    
    .welcome-section .lead {
        font-size: 1rem;
    }
}

/* Responsive typography */
.display-6-mobile {
    font-size: 1.75rem;
}

.lead-mobile {
    font-size: 1rem;
}

.h3-mobile {
    font-size: 1.5rem;
}

.h5-mobile {
    font-size: 1.1rem;
}

.h4-mobile {
    font-size: 1.5rem;
}

.h6-mobile {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .display-6-mobile {
        font-size: 3.5rem;
    }
    
    .lead-mobile {
        font-size: 1.25rem;
    }
    
    .h3-mobile {
        font-size: 2rem;
    }
    
    .h4-mobile {
        font-size: 1.75rem;
    }
    
    .h5-mobile {
        font-size: 1.25rem;
    }
    
    .h6-mobile {
        font-size: 1rem;
    }
}

/* ===== CALENDAR STYLES ===== */
.fc {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.fc-toolbar {
    margin-bottom: 20px;
}

.fc-button {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
}

.fc-button:hover {
    background: #0056b3 !important;
    transform: translateY(-1px);
}

.fc-event {
    border-radius: 4px !important;
    border: none !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
}

/* ===== QUILL EDITOR STYLES ===== */
.ql-editor {
    min-height: 200px;
    font-size: 14px;
    line-height: 1.6;
}

.ql-toolbar {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    border-bottom: none;
}

.ql-container {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    border-top: none;
}

.ql-container.ql-snow {
    border: 2px solid #e9ecef;
}

/* ===== NOTIFICATION STYLES ===== */
.notification-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-item.unread {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.05);
}

.notification-item .notification-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.notification-item .notification-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.notification-item .notification-time {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 5px;
}
