﻿/* =================================
   LOGIN PAGE STYLES
   ================================= */
@import url('style.css');
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    /* background: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?q=80&w=1974&auto=format&fit=crop') no-repeat center center fixed; 
*/   
    background-size: cover;
}

.login-box {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque background */
}

.login-form-panel {
    padding: 40px 30px;
}

/* =================================
   MAIN APPLICATION STYLES (CORRECTED)
   ================================= */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f4f7f6; /* Light gray background */
    overflow-x: hidden;
    color: #4a5568;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2d3748;
}

#wrapper {
    display: flex;
}

/* --- Sidebar --- */
#sidebar-wrapper {
    width: 250px;
    min-height: 100vh;
    background-color: #2E5336; /* Correct dark green */
    transition: margin .25s ease-out;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.sidebar-heading {
    padding: 1rem 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .sidebar-heading .fa-leaf {
        color: white;
    }

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.list-group-item-action:hover, .list-group-item-action:focus {
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.list-group-item.active {
    background: #f39c12; /* Orange accent for active item */
    color: #fff;
    font-weight: 700;
}

.list-group-item .fa-fw {
    color: rgba(255, 255, 255, 0.6);
}

.list-group-item.active .fa-fw {
    color: #fff;
}

.list-group-item.text-danger {
    color: #e74c3c !important;
    font-weight: 700;
}

/* --- Main Content --- */
#page-content-wrapper {
    flex: 1;
    min-width: 0;
}

.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.page-content {
    display: none; /* Hidden by default */
}

    .page-content.active {
        display: block; /* Shown when active */
    }


/* --- Dashboard Specific Styles --- */
.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .stat-card .stat-info {
        text-align: left;
    }

        .stat-card .stat-info .stat-value {
            font-size: 2rem;
            font-weight: 700;
        }

        .stat-card .stat-info .stat-title {
            font-size: 1rem;
            color: #6c757d;
        }

    .stat-card .stat-icon {
        font-size: 2.5rem;
        opacity: 0.8;
    }

    /* Card specific colors */
    .stat-card.card-sales {
        color: #28a745;
    }

    .stat-card.card-outstanding {
        color: #dc3545;
    }

    .stat-card.card-low-stock {
        color: #ffc107;
    }

    .stat-card.card-expenses {
        color: #17a2b8;
    }

.chart-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .chart-card .card-body {
        height: 350px;
    }

/* --- General Components --- */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.card {
    background-color: #fff;
    border: none;
}
