/* assets/css/style.css */
:root {
    --primary-green: #2ECC71;
    --dark-green: #27AE60;
    --light-green: #D5F8E5;
    --white: #FFFFFF;
    --light-bg: #F5F6F8;
    --light-gray: #EAECEF;
    --gray: #95A5A6;
    --dark-gray: #34495E;
    --success: #2ECC71;
    --warning: #F39C12;
    --error: #E74C3C;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-gray);
}

/* Login Pages */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-green) 0%, rgba(255,255,255,1) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: #d5d8dc;
}

.alert {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-error {
    background-color: #FDEDED;
    color: var(--error);
    border: 1px solid #FADBD8;
}

.alert-success {
    background-color: #D5F8E5;
    color: var(--success);
    border: 1px solid #C1F1D9;
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.sidebar-header i {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: var(--gray);
    font-size: 12px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-user i {
    font-size: 40px;
    color: var(--gray);
}

.sidebar-user div {
    flex: 1;
}

.sidebar-user strong {
    display: block;
    font-size: 14px;
}

.sidebar-user small {
    color: var(--gray);
    font-size: 12px;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-green);
}

.sidebar-nav a.active {
    background: var(--light-green);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
}

.main-content {
    flex: 1;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.top-bar-left h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.top-bar-left p {
    color: var(--gray);
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
}

.date-selector input {
    border: none;
    outline: none;
    background: transparent;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-gray);
}

/* Sections */
.section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.section h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Bottle Summary */
.bottle-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.bottle-card {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--light-bg);
}

.bottle-card h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.bottle-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
}

/* Delivery Boy Load */
.delivery-boy-load {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.boy-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.boy-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.boy-info h4 {
    margin-bottom: 5px;
}

.boy-load {
    color: var(--gray);
    font-size: 14px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.data-table thead {
    background: var(--light-bg);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.data-table tbody tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bottle-badge {
    background: var(--light-green);
    color: var(--primary-green);
}

.status-active {
    background: #D5F8E5;
    color: var(--success);
}

.status-inactive {
    background: #FDEDED;
    color: var(--error);
}

/* Forms */
.form-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group label i {
    margin-right: 8px;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Filters */
.filters-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
}

/* Upload Form */
.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius);
    width: 300px;
}

/* Buttons */
.btn-action {
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    margin-right: 5px;
}

.btn-action:hover {
    background: var(--gray);
    color: var(--white);
}

.delete-btn {
    background: #FDEDED;
    color: var(--error);
}

.delete-btn:hover {
    background: var(--error);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing style.css */

/* Report specific styles */
.report-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.report-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    height: 300px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.summary-card .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.bottle-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.bottle-stat {
    text-align: center;
}

.bottle-size {
    font-size: 12px;
    color: var(--gray);
}

.bottle-count {
    font-size: 18px;
    font-weight: 700;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.report-table th {
    background: var(--light-bg);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--light-gray);
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.report-table tr:hover {
    background: var(--light-bg);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 14px;
}

.export-btn:hover {
    background: #219653;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--light-gray);
}