:root {
    --primary-color: #4CAF50;
    --primary-light: #A5D6A7;
    --primary-dark: #2E7D32;
    --secondary-color: #FFC107;
    --text-primary: #212121;
    --text-secondary: #616161;
    --bg-light: #F9FBF9;
    --bg-white: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

[x-cloak] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    background-color: var(--bg-white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-dark) !important;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.navbar-brand span {
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    background-color: rgba(76, 175, 80, 0.08);
}

/* Main Content */
.main-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1200px;
    width: 100%;
    flex: 1;
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Tables */
th {
    white-space: nowrap;
    background-color: var(--primary-dark) !important;
    color: white !important;
    font-weight: 500;
    padding: 1rem !important;
}

.table {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(76, 175, 80, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Forms */
.form-select,
.form-control {
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.form-select:disabled,
.form-select[disabled] {
    background-color: #ececec !important;
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

/* Nav Pills */
.nav-pills {
    background-color: rgba(76, 175, 80, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.nav-pills .nav-link {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(76, 175, 80, 0.15);
}

/* Additional utilities */
.bg-primary-light {
    background-color: rgba(76, 175, 80, 0.15) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.alert-light {
    background-color: var(--bg-white);
    border-color: #e2e8f0 !important;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

/* Home page cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

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