/* IPDC KPI System - Main Stylesheet */

/* IPDC Brand Colors */
:root {
    --ipdc-green: #009639;      /* Ethiopian flag green */
    --ipdc-yellow: #FEDD00;     /* Ethiopian flag yellow */
    --ipdc-red: #DA121A;        /* Ethiopian flag red */
    --ipdc-dark-green: #006B2A; /* Darker green for text */
    --ipdc-light-green: #E8F5E8; /* Light green for backgrounds */
    --ipdc-gray: #6C757D;
    --ipdc-light-gray: #F8F9FA;
    --ipdc-white: #FFFFFF;
    --ipdc-black: #212529;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ipdc-black);
    background-color: var(--ipdc-light-gray);
}

/* Footer */
.site-footer {
    background: var(--ipdc-white);
    border-top: 3px solid var(--ipdc-green);
    padding: 16px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--ipdc-gray);
}

.footer-content a {
    color: var(--ipdc-green);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ipdc-green) 0%, var(--ipdc-dark-green) 100%);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ipdc-green) 0%, var(--ipdc-yellow) 50%, var(--ipdc-red) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--ipdc-white);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0, 150, 57, 0.1);
}

.login-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--ipdc-green), var(--ipdc-dark-green));
    color: var(--ipdc-white);
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ipdc-green) 0%, var(--ipdc-yellow) 50%, var(--ipdc-red) 100%);
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--ipdc-white);
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-header p {
    opacity: 0.9;
    font-size: 14px;
}

.login-form {
    padding: 30px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ipdc-dark-green);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ipdc-green);
    box-shadow: 0 0 0 3px rgba(0, 150, 57, 0.1);
}

/* Enhanced inputs for KPI entry page */
.input-filter {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.input-filter:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

select#kpi_id {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

select#kpi_id optgroup {
    font-weight: 600;
    color: #495057;
}

textarea#notes {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    resize: vertical;
    min-height: 90px;
}

.counter-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.helper-text {
    color: #6c757d;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: var(--ipdc-light-gray);
    color: var(--ipdc-gray);
    font-size: 12px;
    border-top: 1px solid #e9ecef;
}

/* Navigation Styles */
.navbar {
    background: var(--ipdc-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 40px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--ipdc-green);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--ipdc-green);
}

.nav-logo {
    width: 45px;
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--ipdc-gray);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover {
    background: var(--ipdc-light-green);
    color: var(--ipdc-green);
}

.nav-link.active {
    background: var(--ipdc-green);
    color: var(--ipdc-white);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--ipdc-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.user-info {
    text-align: right;
}

.user-info span {
    display: block;
    font-weight: 500;
    color: var(--ipdc-dark-green);
}

.user-info small {
    color: var(--ipdc-gray);
    font-size: 11px;
}

.user-actions {
    display: flex;
    gap: 5px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: var(--ipdc-green);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.user-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--ipdc-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--ipdc-black);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--ipdc-light-gray);
    color: var(--ipdc-green);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--ipdc-gray);
}

.dropdown-item:hover i {
    color: var(--ipdc-green);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}

.park-selector {
    background: var(--ipdc-white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--ipdc-green);
}

.park-selector label {
    font-weight: 500;
    color: var(--ipdc-dark-green);
}

.park-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--ipdc-white);
    min-width: 200px;
}

.park-selector select:focus {
    border-color: var(--ipdc-green);
    outline: none;
}

/* Park Display Styles */
.park-display {
    flex: 1;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 2;
}

.park-display label {
    font-weight: 500;
    color: var(--ipdc-dark-green);
    margin-bottom: 8px;
    display: block;
}

.park-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ipdc-light-green);
    border: 1px solid var(--ipdc-green);
    border-radius: 8px;
    color: var(--ipdc-dark-green);
    font-weight: 500;
}

.park-name i {
    color: var(--ipdc-green);
    font-size: 18px;
}

.park-name span {
    font-size: 16px;
    font-weight: 600;
}

.park-name .dept-name {
    color: var(--ipdc-gray);
    font-weight: 400;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid var(--ipdc-gray);
}

/* Park Selector Section with Current Period */
.park-selector-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px 40px;
    background: var(--ipdc-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 150, 57, 0.1);
    position: relative;
    overflow: hidden;
}

.park-selector-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--ipdc-green), var(--ipdc-dark-green));
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.park-selector-section .park-selector {
    flex: 1;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 2;
}

.current-period-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    color: var(--ipdc-white);
    border-radius: 8px;
    min-width: 250px;
    position: relative;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.current-period-card:hover {
    transform: translateY(-2px);
}

.period-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
}

.period-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.period-content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 40px;
}

.dashboard-header h1 {
    font-size: 32px;
    color: var(--ipdc-dark-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.dashboard-header p {
    color: var(--ipdc-gray);
    font-size: 16px;
}

.park-info {
    background: var(--ipdc-light-green);
    color: var(--ipdc-dark-green);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    border: 1px solid var(--ipdc-green);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--ipdc-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--ipdc-green);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 150, 57, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ipdc-green), var(--ipdc-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ipdc-white);
    font-size: 24px;
}

.stat-content h3 {
    font-size: 28px;
    color: var(--ipdc-dark-green);
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-content p {
    color: var(--ipdc-gray);
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: var(--ipdc-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 150, 57, 0.1);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ipdc-light-green);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ipdc-dark-green);
    font-size: 18px;
    font-weight: 600;
}

.card-content {
    padding: 25px 30px;
}

/* KPI List Styles */
.kpi-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--ipdc-light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--ipdc-green);
    transition: all 0.3s ease;
}

.kpi-item:hover {
    background: var(--ipdc-light-green);
    transform: translateX(5px);
}

.kpi-info h4 {
    font-size: 16px;
    color: var(--ipdc-dark-green);
    margin-bottom: 5px;
    font-weight: 600;
}

.kpi-category {
    color: var(--ipdc-gray);
    font-size: 12px;
}

.kpi-value {
    text-align: right;
}

.kpi-value .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--ipdc-dark-green);
}

.kpi-value .unit {
    color: var(--ipdc-gray);
    font-size: 12px;
    margin-left: 5px;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Activity List Styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--ipdc-light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--ipdc-light-green);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ipdc-green);
    color: var(--ipdc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin-bottom: 5px;
    color: var(--ipdc-dark-green);
}

.activity-content small {
    color: var(--ipdc-gray);
    font-size: 12px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--ipdc-green);
    color: var(--ipdc-white);
}

.btn-primary:hover {
    background: var(--ipdc-dark-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 150, 57, 0.3);
}

.btn-success {
    background: var(--ipdc-green);
    color: var(--ipdc-white);
}

.btn-success:hover {
    background: var(--ipdc-dark-green);
}

.btn-info {
    background: var(--ipdc-yellow);
    color: var(--ipdc-black);
}

.btn-info:hover {
    background: #E6C700;
}

.btn-warning {
    background: var(--ipdc-yellow);
    color: var(--ipdc-black);
}

.btn-warning:hover {
    background: #E6C700;
}

.btn-danger {
    background: var(--ipdc-red);
    color: var(--ipdc-white);
}

.btn-danger:hover {
    background: #B30F15;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: var(--ipdc-light-green);
    color: var(--ipdc-dark-green);
    border-color: var(--ipdc-green);
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border-color: var(--ipdc-red);
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-color: var(--ipdc-yellow);
}

.alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border-color: var(--ipdc-green);
}

/* Utility Classes */
.text-muted {
    color: var(--ipdc-gray);
}

.text-center {
    text-align: center;
}

/* Chart Container */
canvas {
    max-height: 300px;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: var(--ipdc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: var(--ipdc-green);
    color: var(--ipdc-white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.table tr:hover {
    background: var(--ipdc-light-green);
}

/* Table Responsive Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background-color: var(--ipdc-white);
    border: 1px solid rgba(0, 150, 57, 0.1);
}

.table-responsive .table {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Ensure table takes full width within responsive container */
.table-responsive .table {
    min-width: 600px; /* Minimum width to prevent squishing */
}

/* Table content styling for better readability */
.table-responsive .table tbody tr:nth-child(even) {
    background-color: rgba(0, 150, 57, 0.02);
}

.table-responsive .table tbody tr:hover {
    background-color: var(--ipdc-light-green);
}

/* Ensure proper spacing in table cells */
.table-responsive .table td {
    vertical-align: middle;
}

/* Style for table action buttons */
.table-responsive .btn-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.table-responsive .btn-group .btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    background: var(--ipdc-gray);
    color: var(--ipdc-white);
}

.btn-secondary:hover {
    background: #5A6268;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ipdc-light-green);
}

.page-header h1 {
    color: var(--ipdc-dark-green);
    font-size: 28px;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Card Styles */
.card {
    background: var(--ipdc-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 150, 57, 0.1);
}

/* Profile Page Styles */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--ipdc-dark-green);
    min-width: 120px;
}

.info-value {
    color: var(--ipdc-black);
    text-align: right;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background-color: var(--ipdc-light-green);
    color: var(--ipdc-dark-green);
}

.badge-danger {
    background-color: #ffe6e6;
    color: #d63384;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 12px 20px;
        min-height: 70px;
        gap: 15px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-toggle {
        display: flex;
        order: 3;
        z-index: 1001;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
    
    .nav-menu.active {
        display: flex;
        margin: 10px 0;
        gap: 8px;
        position: absolute;
        z-index: 1000;
        background: var(--ipdc-white);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-user {
        order: 2;
        margin-left: auto;
        flex-direction: row;
        gap: 10px;
    }
    
    .user-dropdown-menu {
        right: -10px;
        min-width: 160px;
    }
    
    .user-info {
        text-align: right;
        display: none;
    }
    
    .container {
        padding: 15px 20px;
    }
    
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-header {
        padding: 20px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .card-content {
        padding: 20px 15px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-value {
        text-align: left;
    }
    
    /* Goals Page Styles */
    .btn-group {
        display: flex;
        gap: 5px;
    }
    
    .btn-outline-primary {
        background: transparent;
        border: 1px solid var(--ipdc-green);
        color: var(--ipdc-green);
    }
    
    .btn-outline-primary:hover {
        background: var(--ipdc-green);
        color: var(--ipdc-white);
    }
    
    .btn-outline-danger {
        background: transparent;
        border: 1px solid #dc3545;
        color: #dc3545;
    }
    
    .btn-outline-danger:hover {
        background: #dc3545;
        color: var(--ipdc-white);
    }
    
    .badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .badge-success {
        background: #28a745;
        color: var(--ipdc-white);
    }
    
    .badge-warning {
        background: #ffc107;
        color: #212529;
    }
    
    .badge-info {
        background: #17a2b8;
        color: var(--ipdc-white);
    }
    
    .badge-danger {
        background: #dc3545;
        color: var(--ipdc-white);
    }
    
    .park-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .park-selector select {
        min-width: auto;
        width: 100%;
    }
    
    .park-display {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .park-name {
        padding: 15px 12px;
        gap: 8px;
    }
    
    .park-name span {
        font-size: 14px;
    }
    
    .park-name .dept-name {
        margin-left: 6px;
        padding-left: 6px;
        font-size: 12px;
    }
    
    .park-selector-section {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .park-selector-section::before {
        width: 100%;
        height: 140px;
        top: auto;
        bottom: 0;
    }
    
    .current-period-card {
        min-width: auto;
        width: 100%;
        padding: 25px 20px;
        gap: 20px;
        justify-content: center;
        border-radius: 12px;
    }
    
    .period-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .period-content h3 {
        font-size: 24px;
    }
    
    .period-content p {
        font-size: 18px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .kpi-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
    
    .kpi-value {
        text-align: center;
        margin-top: 10px;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .activity-content {
        text-align: center;
    }
    
    /* Mobile Table Responsive Styles */
    .table-responsive {
        margin: 0 -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .table-responsive .table {
        min-width: 500px;
        font-size: 14px;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 15px;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .dashboard-header {
        padding: 15px 10px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-header p {
        font-size: 14px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 20px;
    }
    
    .stat-content p {
        font-size: 12px;
    }
    
    .kpi-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px;
    }
    
    .kpi-value {
        text-align: center;
        margin-top: 8px;
    }
    
    .kpi-value .value {
        font-size: 18px;
    }
    
    .park-selector-section {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .park-selector-section::before {
        height: 120px;
    }
    
    .current-period-card {
        padding: 20px 15px;
        gap: 15px;
        border-radius: 10px;
    }
    
    .period-content h3 {
        font-size: 18px;
    }
    
    .period-content p {
        font-size: 16px;
    }
    
    .period-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-header {
        padding: 15px 12px;
    }
    
    .card-content {
        padding: 15px 12px;
    }
    
    .activity-item {
        padding: 12px;
        gap: 10px;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .quick-actions {
        gap: 10px;
    }
    
    /* Extra Small Screen Table Responsive Styles */
    .table-responsive {
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .table-responsive .table {
        min-width: 400px;
        font-size: 12px;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        padding: 6px 8px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--ipdc-green);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar,
    .park-selector,
    .quick-actions {
        display: none;
    }
    
    .dashboard-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 