:root {
    --primary-green: #1e8449;
    --light-green: #27ae60;
    --dark-green: #145a32;
    --primary-blue: #2980b9;
    --light-blue: #3498db;
    --dark-blue: #1f618d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #424242;
    --black: #212121;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transition: background-color 0.3s ease;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--dark-green) 100%);
    height: 100vh;
    overflow: hidden;
}

.login-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    position: relative;
}

.login-logo {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-card h2 {
    color: var(--primary-green);
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

/* Animation for ripple effect */
.btn-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    border-radius: 0 30px 30px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--white);
    transform: translateX(5px);
}

.nav-link i {
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.top-bar {
    background-color: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.top-bar:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-title {
    color: var(--primary-green);
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-info {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.user-info:hover {
    transform: translateY(-2px);
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-info:hover img {
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dashboard-card-title {
    color: var(--primary-green);
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-card-title {
    transform: scale(1.02);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(41, 128, 185, 0.3);
}

.stat-card.green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.stat-card.green:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.stat-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    font-weight: 500;
}

.stat-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .value {
    transform: scale(1.1);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: scale(1.02);
}

.table-responsive {
    margin-top: 15px;
    overflow: hidden;
}

.table {
    transition: all 0.3s ease;
}

.table th {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 500;
    border: none;
}

.table td {
    vertical-align: middle;
    transition: all 0.3s ease;
}

.table tr {
    transition: all 0.3s ease;
}

.table tr:hover {
    background-color: rgba(39, 174, 96, 0.05);
    transform: translateX(5px);
}

.table-row-animate {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    transition: all 0.3s ease;
    padding: 6px 12px;
    font-weight: 500;
}

.badge:hover {
    transform: scale(1.1);
}

.badge-success {
    background-color: var(--light-green);
    color: var(--white);
}

.badge-warning {
    background-color: #f39c12;
    color: var(--white);
}

.badge-danger {
    background-color: #e74c3c;
    color: var(--white);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-green);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.form-control, .form-select {
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
    border-color: var(--primary-green);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Loading Animation */
.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

.pagination {
    transition: all 0.3s ease;
}

.pagination .page-link {
    color: var(--primary-green);
    border-radius: 4px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--light-green);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        padding: 15px 0;
    }
    
    .sidebar-header {
        padding: 0 10px 15px;
        text-align: center;
    }
    
    .sidebar-logo {
        max-width: 40px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
} 