/* Sri Ramkrishna Charitable Hospital Management System - Custom CSS */
:root {
    --primary-color: #007bff; /* Light Blue */
    --secondary-color: #0d9488; /* Teal */
    --success-color: #10b981; /* Soft Green */
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.text-teal { color: var(--secondary-color) !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

.medical-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
    color: white;
}

/* Sidebar Styling */
#sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--primary-color);
    background: #f1f5f9;
    border-left: 4px solid var(--primary-color);
}

#sidebar ul li a i {
    margin-right: 10px;
}

/* Page Content */
#content {
    width: calc(100% - 250px);
    padding: 30px;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
}

/* Dashboard Cards */
.stat-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    transition: transform 0.2s;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

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

.btn-teal {
    background-color: var(--secondary-color);
    color: white;
}

.btn-teal:hover {
    background-color: #0b7a6f;
    color: white;
}

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

/* Responsiveness */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
}
