/* Green Ledger Custom Styles */

:root {
    --primary-color: #6B8E4E;      /* Earth-toned green */
    --secondary-color: #8B7355;    /* Earth-toned brown */
    --success-color: #7A9B76;      /* Muted green */
    --info-color: #6B8E8B;         /* Earth-toned blue */
    --warning-color: #B8860B;      /* Earth-toned yellow */
    --danger-color: #8B4513;       /* Earth-toned red */
    --light-color: #F5F5DC;        /* Beige */
    --dark-color: #2F4F2F;         /* Dark forest green */
    
    /* Earth-toned variants */
    --earth-green: #6B8E4E;
    --earth-blue: #6B8E8B;
    --earth-red: #8B4513;
    --earth-muted-red: #A0826D;
    --earth-matte-red: #d94711;
    --earth-yellow: #B8860B;
    --earth-brown: #8B7355;
    --earth-purple: #8B6B8B;
    --earth-orange: #CC6B49;  /* Earth-toned orange */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 0;
}

/* Link colors - Earth-toned blue (excluding navigation) */
a:not(.navbar a):not(.nav-link):not(.btn) {
    color: var(--earth-blue) !important;
}

a:not(.navbar a):not(.nav-link):not(.btn):hover {
    color: #4a6d6b !important; /* Darker shade for hover */
}

.navbar {
    margin-bottom: 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    transition: transform 0.15s ease-in-out;
}

/* Status badges */
.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Main content alignment */
main.container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}

/* Content wrapper for proper alignment */
.content-wrapper {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure navigation and content alignment */
.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Remove default margins from rows */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Ensure cards align properly */
.card {
    margin-bottom: 1.5rem;
}

/* Earth-toned Bootstrap color overrides */
.bg-earth-green {
    background-color: var(--earth-green) !important;
}

.bg-earth-blue {
    background-color: var(--earth-blue) !important;
}

.bg-earth-red {
    background-color: var(--earth-red) !important;
}

.bg-earth-yellow {
    background-color: var(--earth-yellow) !important;
}

.bg-earth-brown {
    background-color: var(--earth-brown) !important;
}

.bg-earth-purple {
    background-color: var(--earth-purple) !important;
}

.bg-earth-orange {
    background-color: var(--earth-orange) !important;
}

/* Text colors for earth tones */
.text-earth-green {
    color: var(--earth-green) !important;
}

.text-earth-blue {
    color: var(--earth-blue) !important;
}

.text-earth-red {
    color: var(--earth-red) !important;
}

.text-earth-yellow {
    color: var(--earth-yellow) !important;
}

.text-earth-brown {
    color: var(--earth-brown) !important;
}

.text-earth-purple {
    color: var(--earth-purple) !important;
}

/* Outline button styles for earth tones */
.btn-outline-earth-green {
    color: var(--earth-green);
    border-color: var(--earth-green);
}

.btn-outline-earth-green:hover {
    color: white;
    background-color: var(--earth-green);
    border-color: var(--earth-green);
}

.btn-outline-earth-blue {
    color: var(--earth-blue);
    border-color: var(--earth-blue);
}

.btn-outline-earth-blue:hover {
    color: white;
    background-color: var(--earth-blue);
    border-color: var(--earth-blue);
}

.btn-outline-earth-red {
    color: var(--earth-red);
    border-color: var(--earth-red);
}

.btn-outline-earth-red:hover {
    color: white;
    background-color: var(--earth-red);
    border-color: var(--earth-red);
}

.btn-outline-earth-yellow {
    color: var(--earth-yellow);
    border-color: var(--earth-yellow);
}

.btn-outline-earth-yellow:hover {
    color: white;
    background-color: var(--earth-yellow);
    border-color: var(--earth-yellow);
}

.btn-outline-earth-brown {
    color: var(--earth-brown);
    border-color: var(--earth-brown);
}

.btn-outline-earth-brown:hover {
    color: white;
    background-color: var(--earth-brown);
    border-color: var(--earth-brown);
}

.btn-outline-earth-purple {
    color: var(--earth-purple);
    border-color: var(--earth-purple);
}

.btn-outline-earth-purple:hover {
    color: white;
    background-color: var(--earth-purple);
    border-color: var(--earth-purple);
}

/* Dashboard specific styles */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Table styles */
.table-responsive {
    border-radius: 0.375rem;
}

.table-sm th,
.table-sm td {
    padding: 0.5rem;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-card h4 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.timeline-content {
    padding-left: 15px;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

