/* Main stylesheet - Light Green Theme */

:root {
    --primary-color: #27AE60;
    --success-color: #2ECC71;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --info-color: #3498DB;
    --light-color: #F0F8F4;
    --dark-color: #2C3E50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F0F8F4;
    background: linear-gradient(135deg, #F0F8F4 0%, #E8F5F0 100%);
    color: #2C3E50;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%) !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #000000 !important;
}

.nav-link {
    margin-left: 1rem;
    color: #000000 !important;
}

.nav-link:hover {
    color: #000000 !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #FFFFFF;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #000000;
    font-weight: 600;
    margin-bottom: 1rem;
}

#balanceCard .card-title {
    color: #000000;
}

/* Tables */
.table {
    background-color: #FFFFFF;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.table thead {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    font-size: 0.80rem;
}

.table th {
    padding: 0.4rem 0.6rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid #E8F5F0;
    transition: background-color 0.15s ease;
    height: auto;
}

.table td {
    padding: 0.35rem 0.6rem !important;
    vertical-align: middle;
}

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

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #FFFFFF;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #F8FCFA;
}

/* Balance card */
#balanceCard {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1rem !important;
}

#balanceAmount {
    font-weight: 700;
    margin: 0.25rem 0;
    color: #000000;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #27AE60;
    border-color: #27AE60;
}

.btn-primary:hover {
    background-color: #229954;
    border-color: #229954;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-success {
    background-color: #2ECC71;
    border-color: #2ECC71;
}

.btn-success:hover {
    background-color: #27AE60;
    border-color: #27AE60;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.btn-danger {
    background-color: #E74C3C;
    border-color: #E74C3C;
}

.btn-danger:hover {
    background-color: #C0392B;
    border-color: #C0392B;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background-color: #F39C12;
    border-color: #F39C12;
    color: #FFFFFF;
}

.btn-warning:hover {
    background-color: #E67E22;
    border-color: #E67E22;
    color: #FFFFFF;
}

.btn-info {
    background-color: #3498DB;
    border-color: #3498DB;
}

.btn-info:hover {
    background-color: #2980B9;
    border-color: #2980B9;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #95A5A6;
    border-color: #95A5A6;
}

.btn-secondary:hover {
    background-color: #7F8C8D;
    border-color: #7F8C8D;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #D5E8E3;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #FFFFFF;
    color: #2C3E50;
}

.form-control:focus,
.form-select:focus {
    border-color: #27AE60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

.form-label {
    font-weight: 500;
    color: #27AE60;
    margin-bottom: 0.5rem;
}

/* Input group */
.input-group .form-control {
    border-right: none;
}

.input-group .btn-primary {
    border-left: none;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.15);
    background-color: #FFFFFF;
}

.modal-header {
    background: linear-gradient(135deg, #F0F8F4 0%, #E8F5F0 100%);
    border-bottom: 2px solid #D5E8E3;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #27AE60;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

.bg-success {
    background-color: #2ECC71 !important;
}

.bg-danger {
    background-color: #E74C3C !important;
}

.bg-warning {
    background-color: #F39C12 !important;
    color: #FFFFFF;
}

.bg-info {
    background-color: #3498DB !important;
}

.bg-primary {
    background-color: #27AE60 !important;
}

/* Alert */
.alert {
    border: none;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.alert-info {
    background-color: #D5F4E6;
    color: #186A3B;
}

.alert-danger {
    background-color: #FADBD8;
    color: #78281F;
}

.alert-success {
    background-color: #D5F4E6;
    color: #186A3B;
}

/* Fixed bottom dialog */
.fixed-bottom-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    border-top: 2px solid #D5E8E3;
    box-shadow: 0 -2px 10px rgba(39, 174, 96, 0.1);
    padding: 1rem;
}

.fixed-bottom-dialog .input-group {
    max-width: 100%;
}

.fixed-bottom-dialog .form-text {
    display: block;
    margin-top: 0.5rem;
    color: #7F8C8D;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #D5E8E3;
}

.nav-tabs .nav-link {
    color: #000000;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #D5E8E3;
    color: #27AE60;
}

.nav-tabs .nav-link.active {
    color: #27AE60;
    border-bottom-color: #27AE60;
    background-color: transparent;
}

/* Text colors */
.text-success {
    color: #27AE60 !important;
}

.text-danger {
    color: #E74C3C !important;
}

.text-muted {
    color: #95A5A6 !important;
}

/* Utilities */
.display-6 {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }

    .fixed-bottom-dialog {
        padding: 0.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.9rem;
    }

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

/* No dark mode - force light theme */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #F0F8F4 !important;
        background: linear-gradient(135deg, #F0F8F4 0%, #E8F5F0 100%) !important;
        color: #2C3E50 !important;
    }

    .card {
        background-color: #FFFFFF !important;
        color: #2C3E50 !important;
    }

    .table {
        background-color: #FFFFFF !important;
        color: #2C3E50 !important;
    }

    .form-control,
    .form-select {
        background-color: #FFFFFF !important;
        color: #2C3E50 !important;
        border-color: #D5E8E3 !important;
    }

    .modal-content {
        background-color: #FFFFFF !important;
        color: #2C3E50 !important;
    }
}
