/* Dashboard Main Styles - Use this in all pages */
:root {
    --primary-green: #2e7d32;
    --secondary-green: #1b5e20;
    --light-green: #4caf50;
    --primary-blue: #4e73df;
    --success-green: #1cc88a;
    --warning-yellow: #f6c23e;
    --danger-red: #e74a3b;
    --info-blue: #36b9cc;
    --dark-gray: #6c757d;
    --light-gray: #f8f9fc;
    --purple: #6f42c1;
    --pink: #e83e8c;
}

body {
    background-color: var(--light-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-green) 10%, var(--secondary-green) 100%);
    position: fixed;
    width: 16.66666667%;
    z-index: 100;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Card Styles */
.card {
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

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

.card-border-left-primary { border-left: 0.4rem solid var(--primary-blue) !important; }
.card-border-left-success { border-left: 0.4rem solid var(--success-green) !important; }
.card-border-left-warning { border-left: 0.4rem solid var(--warning-yellow) !important; }
.card-border-left-danger { border-left: 0.4rem solid var(--danger-red) !important; }
.card-border-left-info { border-left: 0.4rem solid var(--info-blue) !important; }
.card-border-left-dark { border-left: 0.4rem solid var(--dark-gray) !important; }

/* Stat Cards */
.stat-card {
    height: 120px;
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Alert Styles */
.alert-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-item {
    border-left-width: 4px !important;
    transition: all 0.3s;
}

.alert-item:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.alert-critical {
    border-left-color: var(--danger-red) !important;
    background-color: #fdf2f1;
}

.alert-high {
    border-left-color: var(--warning-yellow) !important;
    background-color: #fef6e6;
}

.alert-medium {
    border-left-color: var(--info-blue) !important;
    background-color: #f0f9fb;
}

/* Badge Styles */
.badge-bg-pink {
    background-color: var(--pink) !important;
    color: white;
}

.badge-bg-blue {
    background-color: var(--info-blue) !important;
    color: white;
}

/* Progress Bar */
.progress-thin {
    height: 6px;
}

/* Banner Styles */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.system-warning {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Quick Action Button */
.quick-action-btn {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: scale(1.05);
}

/* Alert Priority Colors */
.alert-priority-critical { color: var(--danger-red); font-weight: bold; }
.alert-priority-high { color: var(--warning-yellow); font-weight: bold; }
.alert-priority-medium { color: var(--info-blue); font-weight: bold; }
.alert-priority-low { color: var(--dark-gray); font-weight: bold; }

/* Button Variants */
.btn-outline-purple {
    color: var(--purple);
    border-color: var(--purple);
}

.btn-outline-purple:hover {
    background-color: var(--purple);
    color: white;
}

/* Alert Types */
.medication-alert {
    border-left: 4px solid var(--warning-yellow);
    background-color: #fffcf2;
}

.low-stock-alert {
    border-left: 4px solid var(--danger-red);
    background-color: #fdf2f1;
}

/* Responsive Sidebar */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }
    
    main {
        margin-left: 0 !important;
    }
}

/* Utility Classes */
.cursor-pointer { cursor: pointer; }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }