/* style.css - Gaya Khas e-RPH */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global */
:root {
    --corp-primary: #003366; /* Royal Navy Blue */
    --corp-secondary: #004080; /* Lighter Navy */
    --corp-accent: #ffcc00; /* Academic Gold */
    --corp-bg: #f4f7fa; /* Very Light Blue-Grey */
    --corp-text: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--corp-bg);
    color: var(--corp-text);
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--corp-primary) 0%, #001a33 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    z-index: 100;
    padding-top: 0;
}

.sidebar-heading {
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    background-color: rgba(0,0,0,0.2);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

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

.sidebar .nav-link.active {
    color: var(--corp-primary) !important;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: 600;
    border: none;
    position: relative;
}

/* Accent strip for active link */
.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--corp-accent);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Topbar (Header) */
.topbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 15px 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eef2f7;
    /* border-radius: 10px; Removed for full width feel */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    border-top: 3px solid transparent; /* Persediaan untuk accent */
}

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

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 600;
    padding: 15px 20px;
    color: var(--corp-primary);
}

/* Footer */
.footer {
    padding: 20px 0;
    color: #8898aa;
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #eef2f7;
    background-color: #fff;
}

/* Layout Fixes */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Dashboard Stats Cards Specifics */
.bg-primary {
    background-color: var(--corp-primary) !important;
}
.bg-success {
    background-color: #2dce89 !important; /* Corporate Green */
}

/* Table Styling */
.table thead th {
    background-color: #f8f9fe;
    color: #525f7f;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
}