/* Tab Navigation Buttons */
.tab-btn {
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:not(.active) {
    cursor: pointer;
}

.tab-btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 122, 66, 0.2);
    background: #d9f0e0 !important;
}

.tab-btn.active {
    box-shadow: 0 6px 20px rgba(43, 122, 66, 0.3);
}

/* Card Styling */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(43, 122, 66, 0.15) !important;
    transform: translateY(-4px);
}

/* Button Styling */
.btn:not(.tab-btn) {
    transition: all 0.3s ease;
}

.btn:not(.tab-btn):hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #2b7a42;
    box-shadow: 0 0 0 0.2rem rgba(43, 122, 66, 0.15);
}

.form-control,
.form-select {
    border-radius: 6px;
    padding: 0.65rem 1rem;
    height: calc(2.875rem + 2px);
}

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Table Styling */
table {
    font-size: 0.95rem;
    border-collapse: separate;
    border-spacing: 0;
}

table thead {
    background: linear-gradient(to bottom, #f8fdf6 0%, #e8f5ea 100%);
    border-bottom: 2px solid #2b7a42;
}

table th {
    color: #2b7a42;
    font-weight: 600;
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

table td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #f8fdf6;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(43, 122, 66, 0.2);
}

/* Small Helper Text */
small.text-muted {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-lg-3 .d-flex {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    section.jarallax {
        min-height: 240px !important;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .tab-btn {
        width: 100%;
        min-width: auto;
    }
    
    .col-md-2.d-flex {
        margin-top: 0.5rem;
    }
    
    .col-md-2.d-flex .btn {
        flex: 1 !important;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.6rem 0.4rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
