@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --bs-body-font-family: 'Open Sans', sans-serif;
    --bs-body-bg: #f8f9fa;
    --bs-primary: #1a472a;
    /* Academic Green */
    --bs-primary-rgb: 26, 71, 42;
    --card-box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    --card-border-radius: 1rem;
    --gradient-primary: linear-gradient(310deg, #1a472a, #52b788);
    /* Deep Green to Soft Green */
    --gradient-info: linear-gradient(310deg, #2152ff, #21d4fd);
    --gradient-success: linear-gradient(310deg, #17ad37, #98ec2d);
    --text-main: #344767;
    --text-muted: #8392ab;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
}

/* Card Styling - Soft UI Style */
.card {
    box-shadow: var(--card-box-shadow);
    border: none;
    border-radius: var(--card-border-radius);
    background-color: #fff;
    transition: transform 0.3s ease;
}

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

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Sidebar Styling */
.sidebar {
    background: #fff;
    border-radius: var(--card-border-radius);
    margin: 0.5rem 0 0.5rem 0.5rem;
    height: calc(100vh - 2rem);
    position: sticky;
    top: 1rem;
    box-shadow: var(--card-box-shadow);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.6rem;
    margin: 0 0.2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.02);
}

.sidebar .nav-link.active {
    background-image: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background-color: #fff;
    /* Default icon bg */
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link.active i {
    background-color: transparent;
    /* Icon transparent on active */
    color: #fff;
    box-shadow: none;
}

/* Header Styling */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
}

.logo-container img {
    max-height: 50px;
}

.header-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-info i {
    color: var(--bs-primary);
}

/* Gradients for utilities */
.bg-gradient-primary {
    background-image: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background-image: var(--gradient-success) !important;
}

.bg-gradient-info {
    background-image: var(--gradient-info) !important;
}

.text-gradient-primary {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
.main-footer {
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.main-footer a {
    color: var(--text-main);
}