/* Light Theme Dashboard */
:root {
    --primary: #1a9f75;
    /* Vision Solar Green */
    --primary-dark: #14805e;
    --secondary: #f49e22;
    /* Vision Solar Orange */
    --bg-main: #f8f9fa;
    /* Light Grey Background */
    --surface: #ffffff;
    /* White Cards */
    --text-main: #2c3e50;
    /* Dark Blue-Grey Text */
    --text-muted: #7f8c8d;
    /* Grey Text */
    --border: #e0e0e0;
    --input-bg: #f1f3f5;
    --danger: #e74c3c;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    /* Subtle top gradient */
    background-image: linear-gradient(to bottom, #e9f5f2 0%, var(--bg-main) 100%);
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

h1 {
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: var(--primary);
    font-weight: 700;
}

p.subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

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

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.dashboard-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover {
    background-color: #f8fdfb;
    /* Very light green tint */
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.unpaid {
    background: #fff3e0;
    color: var(--secondary);
    border: 1px solid #ffe0b2;
}

.badge.paid {
    background: #e8f5e9;
    color: var(--primary);
    border: 1px solid #c8e6c9;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(26, 159, 117, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 159, 117, 0.3);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: #f9f9f9;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f0f0f0;
    color: var(--primary);
}

.btn-icon.delete:hover {
    color: var(--danger);
    background-color: #fff5f5;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.full-width {
    grid-column: span 2;
}

.section-title {
    grid-column: span 2;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--secondary);
    margin-right: 10px;
    border-radius: 2px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 159, 117, 0.1);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-group:hover {
    background: white;
    border-color: var(--border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* Highlighted Section (Pricing) */
.highlight-section {
    background: #e8f5e9 !important;
    /* Light green bg */
    border: 1px solid #c8e6c9 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width,
    .section-title,
    button.btn-primary {
        grid-column: span 1;
    }

    .card {
        padding: 20px;
    }
}