:root {
    --primary-color: #346933;
    --secondary-color: #f8b933;
    --tertiary-color: #2c5282;
    --light-color: #f4f7ed;
    --dark-color: #1a3617;
    --gray-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f9fafb;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-info {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
}

/* Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 240px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    overflow-y: auto;
    z-index: 900;
    transition: var(--transition);
}

.main-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 15px;
}

.menu-section-title {
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
}

.menu-items {
    list-style: none;
}

.menu-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.menu-item i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.page-title {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 20px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    padding: 0 10px;
    flex-grow: 1;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-tertiary {
    background-color: var(--tertiary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-color);
}

.table th {
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--light-color);
}

.table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dashboard Widgets */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stats-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.stats-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Charts and Graphs */
.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Calendar Styles */
.calendar {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.calendar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--gray-color);
}

.calendar-day {
    background-color: #fff;
    padding: 10px;
    min-height: 80px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 500;
    padding: 10px;
    background-color: var(--light-color);
}

/* Map Styles */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Progress Bar */
.progress {
    height: 8px;
    background-color: var(--gray-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

.tag-success { background-color: rgba(72, 187, 120, 0.2); color: var(--success-color); }
.tag-warning { background-color: rgba(237, 137, 54, 0.2); color: var(--warning-color); }
.tag-danger { background-color: rgba(229, 62, 62, 0.2); color: var(--danger-color); }

/* Metaverse specific */
.metaverse-viewer {
    width: 100%;
    height: 500px;
    background-color: #000;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.metaverse-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .col-md-6 { width: 50%; }
    .col-md-12 { width: 100%; }
}

@media (max-width: 576px) {
    .col-sm-12 { width: 100%; }
    .header-container {
        padding: 10px;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.bg-light { background-color: var(--light-color); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; } 