/* Main stylesheet for Solar Quote Generator */ 
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fa;
    color: #222;
}

nav {
    background: #1a4d2e;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav h1 {
    margin: 0;
    font-size: 1.5rem;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
nav ul li {
    display: inline;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #f9d923;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem 2.5rem;
}
section {
    margin-bottom: 2rem;
}
section h2, section h3 {
    color: #1a4d2e;
}
form {
    margin-top: 1rem;
}
form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
form input, form select, form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    font-size: 1rem;
    background: #f7f9fa;
}
form button {
    background: #1a4d2e;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
form button:hover {
    background: #25603b;
}

/* Enhanced quote summary box */
#quote-summary, .quote-summary {
    background: linear-gradient(90deg, #f9fbe7 80%, #e0f2f1 100%);
    border: 1.5px solid #cfd8dc;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(26,77,46,0.06);
    font-size: 1.08rem;
    color: #1a4d2e;
}
#quote-summary h4, .quote-summary h4 {
    margin-top: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a4d2e;
}
#quote-summary div, .quote-summary div {
    margin-bottom: 0.5rem;
}
#quote-summary strong, .quote-summary strong {
    color: #25603b;
}
#quote-summary .total, .quote-summary .total {
    font-size: 1.2em;
    font-weight: 700;
    color: #388e3c;
    margin-top: 0.7em;
    display: block;
}

/* --- Admin Dashboard Navigation Modernization --- */
.admin-dashboard-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,77,46,0.07);
    padding: 0.5rem 0 0 0;
    margin-bottom: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.dashboard-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    background: #f7f9fa;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 4px rgba(26,77,46,0.04);
    overflow-x: auto;
    margin: 0 1rem;
}

.dashboard-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    color: #1a4d2e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.dashboard-tabs .tab-btn i {
    font-size: 1.1em;
    margin-right: 0.5em;
    transition: transform 0.2s;
}

.dashboard-tabs .tab-btn.active {
    background: linear-gradient(135deg, #e0f2f1 0%, #f9fbe7 100%);
    color: #25603b;
    box-shadow: 0 4px 12px rgba(26,77,46,0.15);
    transform: translateY(-1px);
}

.dashboard-tabs .tab-btn.active i {
    transform: scale(1.1);
}

.dashboard-tabs .tab-btn:hover:not(.active) {
    background: #f9fbe7;
    color: #388e3c;
    transform: translateY(-1px);
}

.dashboard-tabs .tab-btn:hover:not(.active) i {
    transform: scale(1.05);
}

.dashboard-tabs .tab-indicator {
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1a4d2e 60%, #f9d923 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    pointer-events: none;
}

.admin-dashboard-content {
    padding: 2rem 0.5rem 0 0.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Legacy dashboard tabs for sales dashboard */
.dashboard-tabs:not(.admin-dashboard-nav .dashboard-tabs) {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.dashboard-tabs:not(.admin-dashboard-nav .dashboard-tabs) .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    border-radius: 0;
    gap: 0;
}

.dashboard-tabs:not(.admin-dashboard-nav .dashboard-tabs) .tab-btn:hover {
    color: #1a4d2e;
}

.dashboard-tabs:not(.admin-dashboard-nav .dashboard-tabs) .tab-btn.active {
    color: #1a4d2e;
    border-bottom-color: #1a4d2e;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Quote Actions */
.quote-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.quote-actions button {
    flex: 1;
}

.quote-actions button[type="button"] {
    background: #28a745;
}

.quote-actions button[type="button"]:hover {
    background: #218838;
}

/* Quotes List */
.quote-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quote-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quote-customer {
    font-weight: 600;
    color: #1a4d2e;
}

.quote-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.quote-status.draft {
    background: #e9ecef;
    color: #6c757d;
}

.quote-status.sent {
    background: #d1ecf1;
    color: #0c5460;
}

.quote-status.accepted {
    background: #d4edda;
    color: #155724;
}

.quote-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.quote-status.pending_approval {
    background: #fff3cd;
    color: #856404;
}

.quote-status.approved {
    background: #d1ecf1;
    color: #0c5460;
}

.quote-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.quote-detail {
    font-size: 0.9rem;
}

.quote-detail strong {
    color: #495057;
}

.rejection-feedback {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    color: #721c24;
}

.rejection-feedback strong {
    color: #721c24;
}

.approval-notes {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    color: #0c5460;
}

.approval-notes strong {
    color: #0c5460;
}

.quote-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4d2e;
    text-align: right;
    margin-bottom: 1rem;
}

.quote-actions-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quote-actions-list button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.quote-actions-list button:hover {
    transform: translateY(-1px);
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-controls button {
    background: #1a4d2e;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.admin-controls button:hover {
    background: #25603b;
}

.admin-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.user-management, .system-stats {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #d1ecf1;
    color: #0c5460;
}

.role-badge.sales {
    background: #d4edda;
    color: #155724;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #1a4d2e;
    margin: 0;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-container h3 {
    margin-top: 0;
    color: #495057;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    color: #495057;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-section select,
.filter-section input {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
}

.close:hover {
    color: #495057;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #495057;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    flex: 1;
}

.user-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #6c757d;
    font-size: 0.9rem;
}

.user-role {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.user-role.admin {
    background: #d1ecf1;
    color: #0c5460;
}

.user-role.sales {
    background: #d4edda;
    color: #155724;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.product-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-name {
    font-weight: 600;
    color: #1a4d2e;
}

.product-category {
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-detail {
    font-size: 0.9rem;
}

.product-detail strong {
    color: #495057;
}

.product-cost {
    font-weight: 600;
    color: #1a4d2e;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.product-actions button:hover {
    transform: translateY(-1px);
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.export-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.export-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.export-card h4 {
    margin-top: 0;
    color: #1a4d2e;
}

.export-card p {
    color: #6c757d;
    margin-bottom: 1rem;
}

#export-status {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

#export-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#export-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-primary {
    background: linear-gradient(135deg, #1a4d2e 0%, #25603b 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #25603b 0%, #1a4d2e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,77,46,0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
    .admin-dashboard-content {
        padding: 1rem 0.2rem 0 0.2rem;
    }
    .dashboard-tabs {
        padding: 0.5rem 0.2rem;
        margin: 0 0.5rem;
    }
    .dashboard-tabs .tab-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 800px) {
    main {
        padding: 1rem;
        margin: 1rem;
    }
    .admin-controls {
        flex-direction: column;
    }
    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    nav, main {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    main {
        padding: 0.5rem;
        margin: 0.5rem;
    }
    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 0.2rem;
        padding: 0.3rem 0.1rem;
    }
    .dashboard-tabs .tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }
    .dashboard-tabs .tab-btn i {
        margin-right: 0.3rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-width: 98vw;
        padding: 1rem;
        max-height: 90vh;
    }
    .export-options {
        grid-template-columns: 1fr;
    }
    .charts-section {
        grid-template-columns: 1fr;
    }
}

/* Force a visible scrollbar for modal-content when content overflows */
.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto !important;
    box-sizing: border-box;
    margin: 2rem 0;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cfd8dc #f7f9fa;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cfd8dc;
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f7f9fa;
    border-radius: 4px;
} 

/* Product selection grid for quote builder */
.product-category-group {
    margin-bottom: 2rem;
}
.product-category-group h4 {
    margin-bottom: 0.5rem;
    color: #1a4d2e;
    font-size: 1.1rem;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.product-select-item {
    background: #f7f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-select-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-select-item label {
    font-weight: 500;
    color: #495057;
}
.product-select-item input[type="number"] {
    width: 80px;
    margin-left: 0.5rem;
}
.product-name {
    font-weight: 600;
    color: #1a4d2e;
}
.product-unit, .product-price {
    color: #6c757d;
    font-size: 0.9rem;
}

.solar-quote-summary {
    background: linear-gradient(135deg, #f9fbe7 0%, #e0f2f1 100%);
    border: 1.5px solid #cfd8dc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(26,77,46,0.08);
    font-size: 1.08rem;
    color: #1a4d2e;
}

.solar-quote-summary .summary-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a4d2e;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 0.5rem;
}

.solar-quote-summary .summary-list {
    margin-bottom: 1.5rem;
}

.solar-quote-summary .summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0f2f1;
}

.solar-quote-summary .item-number {
    background: linear-gradient(135deg, #1a4d2e 0%, #25603b 100%);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.solar-quote-summary .item-content {
    flex: 1;
}

.solar-quote-summary .item-title {
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.solar-quote-summary .item-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.solar-quote-summary .item-calc {
    color: #495057;
    font-size: 0.85rem;
    font-style: italic;
}

.solar-quote-summary .item-result {
    font-weight: 700;
    color: #1a4d2e;
    font-size: 1.1rem;
    text-align: right;
    min-width: 120px;
}

.solar-quote-summary .summary-total {
    background: linear-gradient(135deg, #1a4d2e 0%, #25603b 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.solar-quote-summary .summary-total .label {
    font-size: 1.1rem;
    font-weight: 600;
}

.solar-quote-summary .summary-total .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .solar-quote-summary {
        padding: 1rem;
        font-size: 1rem;
    }
    .solar-quote-summary .summary-header {
        font-size: 1.1rem;
    }
    .solar-quote-summary .summary-total .amount {
        font-size: 1.3rem;
    }
    .solar-quote-summary .item-result {
        font-size: 1rem;
        min-width: 100px;
    }
    .solar-quote-summary .summary-item {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

/* --- Home Page Landing Styles --- */
#home-section {
    padding: 0;
    margin: 0;
    max-width: none;
    background: none;
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a4d2e 0%, #25603b 50%, #388e3c 100%);
    color: white;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #f9d923, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    color: #f9d923;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(45deg, #f9d923, #ffd700);
    color: #1a4d2e;
    box-shadow: 0 4px 15px rgba(249, 217, 35, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 217, 35, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Solar Panel Animation */
.solar-panel-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    z-index: 2;
}

.panel {
    width: 80px;
    height: 60px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: panelGlow 3s ease-in-out infinite alternate;
}

.panel::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border-radius: 4px;
    opacity: 0.8;
}

.panel:nth-child(2) { animation-delay: 0.5s; }
.panel:nth-child(3) { animation-delay: 1s; }
.panel:nth-child(4) { animation-delay: 1.5s; }
.panel:nth-child(5) { animation-delay: 2s; }
.panel:nth-child(6) { animation-delay: 2.5s; }

@keyframes panelGlow {
    0% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 4px 20px rgba(249, 217, 35, 0.6); }
}

.sun-rays {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
}

.ray {
    position: absolute;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #f9d923, transparent);
    border-radius: 2px;
    animation: rayRotate 4s linear infinite;
}

.ray:nth-child(1) { transform: rotate(0deg) translateY(-30px); }
.ray:nth-child(2) { transform: rotate(60deg) translateY(-30px); }
.ray:nth-child(3) { transform: rotate(120deg) translateY(-30px); }
.ray:nth-child(4) { transform: rotate(180deg) translateY(-30px); }
.ray:nth-child(5) { transform: rotate(240deg) translateY(-30px); }
.ray:nth-child(6) { transform: rotate(300deg) translateY(-30px); }

@keyframes rayRotate {
    0% { transform: rotate(0deg) translateY(-30px); }
    100% { transform: rotate(360deg) translateY(-30px); }
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    color: #1a4d2e;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 77, 46, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a4d2e, #25603b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #1a4d2e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a4d2e, #25603b);
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #f9d923;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 2rem;
    background: white;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    color: #1a4d2e;
    margin-bottom: 3rem;
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(26, 77, 46, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-content i {
    color: #1a4d2e;
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #495057;
    font-style: italic;
    margin-left: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a4d2e, #25603b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    color: #1a4d2e;
    font-size: 1.1rem;
}

.author-title {
    color: #6c757d;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #1a4d2e;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .solar-panel-animation {
        width: 250px;
        height: 250px;
    }
    
    .panel {
        width: 60px;
        height: 45px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-section h2,
    .testimonials-section h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* End of Home Page Landing Styles */ 

/* Chart Styles for Admin Dashboard */
.chart-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 400px;
    position: relative;
}

.chart-container h3 {
    margin-top: 0;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.chart-container canvas {
    max-height: 350px !important;
    width: 100% !important;
}

#quote-status-chart,
#sales-performance-chart {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Loading state for charts */
.chart-container.loading::after {
    content: 'Loading charts...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-style: italic;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-container {
        min-height: 300px;
    }
    
    #quote-status-chart,
    #sales-performance-chart {
        height: 300px;
    }
    
    .chart-container canvas {
        max-height: 250px !important;
    }
} 

/* Multiple select styling for system type */
select[name="systemType"] {
    min-height: 100px;
}

select[name="systemType"] option {
    padding: 8px;
    margin: 2px 0;
    border-radius: 4px;
}

select[name="systemType"] option:checked {
    background: linear-gradient(135deg, #1a4d2e, #25603b);
    color: white;
}

/* Help text for system type selection */
.system-type-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Panel Recommendations Styles */
#panel-recommendations {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #1a4d2e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.1);
}

.panel-selection-section {
    margin-bottom: 1.5rem;
}

.panel-selection-controls {
    margin-bottom: 1rem;
}

.panel-selection-controls label {
    display: block;
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 0.5rem;
}

.panel-selection-controls select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #1a4d2e;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    color: #333;
    cursor: pointer;
}

.panel-selection-controls select:focus {
    outline: none;
    border-color: #f9d923;
    box-shadow: 0 0 0 3px rgba(249, 217, 35, 0.2);
}

#panel-calculation-display {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.calculation-details h5 {
    color: #1a4d2e;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.calc-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-label {
    font-weight: 600;
    color: #1a4d2e;
}

.calc-value {
    font-weight: 500;
    color: #333;
}

.panel-actions {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.panel-actions button {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-actions button:hover {
    background: #25603b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 77, 46, 0.2);
}

.panel-actions button i {
    font-size: 0.9rem;
}

.panel-recommendations-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.panel-recommendations-header h4 {
    color: #1a4d2e;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.panel-recommendations-header h4 i {
    color: #f9d923;
}

.panel-recommendations-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.recommendations-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #1a4d2e;
}

.summary-item .label {
    font-weight: 600;
    color: #1a4d2e;
}

.summary-item .value {
    font-weight: 500;
    color: #333;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-item:hover {
    border-color: #1a4d2e;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.15);
    transform: translateY(-2px);
}

.recommendation-item.top-recommendation {
    border-color: #f9d923;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    box-shadow: 0 6px 20px rgba(249, 217, 35, 0.2);
}

.recommendation-item.top-recommendation::before {
    content: "★ TOP PICK";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #f9d923;
    color: #1a4d2e;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.panel-info h5 {
    margin: 0 0 0.25rem 0;
    color: #1a4d2e;
    font-size: 1.1rem;
}

.panel-watt {
    background: #1a4d2e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.recommendation-rank {
    font-weight: bold;
    color: #1a4d2e;
    font-size: 0.9rem;
}

.recommendation-rank i {
    color: #f9d923;
    margin-right: 0.25rem;
}

.recommendation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-row .label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.detail-row .value {
    font-weight: 600;
    color: #1a4d2e;
}

.recommendation-reasoning {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1a4d2e;
}

.recommendation-reasoning h6 {
    margin: 0 0 0.5rem 0;
    color: #1a4d2e;
    font-size: 0.95rem;
}

.recommendation-reasoning ul {
    margin: 0;
    padding-left: 1.25rem;
}

.recommendation-reasoning li {
    margin-bottom: 0.25rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recommendation-actions {
    text-align: center;
}

.recommendation-actions button {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-actions button:hover {
    background: #25603b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 77, 46, 0.2);
}

.recommendation-actions button i {
    font-size: 0.85rem;
}

/* Responsive design for panel recommendations */
@media (max-width: 768px) {
    #panel-recommendations {
        padding: 1rem;
    }
    
    .recommendations-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .recommendation-details {
        grid-template-columns: 1fr;
    }
    
    .recommendation-item.top-recommendation::before {
        left: 10px;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .panel-recommendations-header h4 {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .recommendation-item {
        padding: 1rem;
    }
    
    .recommendation-reasoning {
        padding: 0.75rem;
    }
    
    .recommendation-actions button {
        width: 100%;
        justify-content: center;
    }
} 

/* Export Section Styles */
.export-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.export-section h3 {
    margin: 0 0 1rem 0;
    color: #1a4d2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.export-buttons button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.export-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#export-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

#export-status p {
    margin: 0;
}

#export-status .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#export-status .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CAPTCHA Styles */
.captcha-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.captcha-question {
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.captcha-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.captcha-refresh {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.captcha-refresh:hover {
    background: #5a6268;
}

/* User Management Styles */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.user-info {
    flex: 1;
}

.user-info strong {
    color: #1a4d2e;
    font-size: 1.1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.super_admin {
    background: #fff3e0;
    color: #f57c00;
}

.role-badge.sales {
    background: #e8f5e8;
    color: #2e7d32;
}

.user-info small {
    display: block;
    color: #666;
    margin-top: 0.25rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.current-user-badge {
    padding: 0.25rem 0.5rem;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Export Buttons */
@media (max-width: 768px) {
    .export-buttons {
        flex-direction: column;
    }
    
    .export-buttons button {
        width: 100%;
        justify-content: center;
    }
    
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
} 
/* Section-based visibility */
body[data-section="home"] #home-section {
    display: block !important;
}

body[data-section="login"] #login-section {
    display: block !important;
}

body[data-section="admin"] #admin-dashboard {
    display: block !important;
}

body[data-section="super_admin"] #admin-dashboard {
    display: block !important;
}

body[data-section="sales"] #sales-dashboard {
    display: block !important;
}

/* Only hide sections when body has a data-section attribute */
body[data-section] #home-section,
body[data-section] #login-section,
body[data-section] #admin-dashboard,
body[data-section] #sales-dashboard {
    display: none;
}

/* Hide admin dashboard for non-admin/super_admin sections */
body[data-section="home"] #admin-dashboard,
body[data-section="login"] #admin-dashboard,
body[data-section="sales"] #admin-dashboard {
    display: none !important;
}

/* Hide sales dashboard for non-sales sections */
body[data-section="home"] #sales-dashboard,
body[data-section="login"] #sales-dashboard,
body[data-section="admin"] #sales-dashboard,
body[data-section="super_admin"] #sales-dashboard {
    display: none !important;
}

/* Edit Quote Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#edit-quote-modal .modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

#edit-quote-modal h3 {
    color: #1a4d2e;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

#edit-quote-modal fieldset {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

#edit-quote-modal legend {
    color: #1a4d2e;
    font-weight: 600;
    padding: 0 0.5rem;
}

#edit-quote-modal .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

#edit-quote-modal .modal-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

#edit-quote-modal .modal-buttons button[type="submit"] {
    background: #1a4d2e;
    color: #fff;
    border: none;
}

#edit-quote-modal .modal-buttons button[type="submit"]:hover {
    background: #25603b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.2);
}

#edit-quote-modal .modal-buttons button[type="button"] {
    background: #6c757d;
    color: #fff;
    border: none;
}

#edit-quote-modal .modal-buttons button[type="button"]:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

@media (max-width: 768px) {
    #edit-quote-modal .modal {
        padding: 1.5rem;
        width: 95%;
    }
    
    #edit-quote-modal fieldset {
        padding: 1rem;
    }
    
    #edit-quote-modal .modal-buttons {
        flex-direction: column;
    }
    
    #edit-quote-modal .modal-buttons button {
        width: 100%;
    }
}

/* System Logs Styles */
.logs-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logs-stats-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.logs-stats-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.logs-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.log-entry {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.log-entry:hover {
    background-color: #f8f9fa;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.log-action {
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}

.log-timestamp {
    font-size: 12px;
    color: #666;
}

.log-user {
    margin-bottom: 5px;
    font-size: 13px;
}

.log-summary {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* Log action type colors */
.log-login .log-action {
    background-color: #28a745;
}

.log-logout .log-action {
    background-color: #6c757d;
}

.log-quote-create .log-action {
    background-color: #007bff;
}

.log-quote-update .log-action {
    background-color: #17a2b8;
}

.log-quote-approve .log-action {
    background-color: #28a745;
}

.log-quote-reject .log-action {
    background-color: #dc3545;
}

.log-product-create .log-action {
    background-color: #fd7e14;
}

.log-product-update .log-action {
    background-color: #20c997;
}

.log-user-create .log-action {
    background-color: #6f42c1;
}

.log-export .log-action {
    background-color: #e83e8c;
}

.log-default .log-action {
    background-color: #6c757d;
}

/* Log details modal */
.log-detail {
    max-width: 100%;
}

.log-detail h4 {
    margin-top: 0;
    color: #2c3e50;
}

.log-detail p {
    margin: 10px 0;
}

.log-detail pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    border: 1px solid #e9ecef;
}

/* Responsive logs */
@media (max-width: 768px) {
    .logs-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-controls button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .log-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .log-timestamp {
        margin-top: 5px;
    }
    
    .logs-container {
        max-height: 400px;
    }
}

/* Pending Approval Notification Styles */
.notification-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite;
}

.notification-badge-active {
    animation: pulse 2s infinite, blink 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.7;
    }
}

/* Notification Toast Styles */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-message h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.toast-message p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive notification styles */
@media (max-width: 768px) {
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .toast-content {
        padding: 12px;
    }
    
    .toast-icon {
        font-size: 20px;
    }
    
    .toast-message h4 {
        font-size: 14px;
    }
    
    .toast-message p {
        font-size: 13px;
    }
}

/* Enhanced Profile Management Styles */

/* Form sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a4d2e;
}

.form-section h4 {
    margin: 0 0 1rem 0;
    color: #1a4d2e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: #28a745;
}

/* Field help text */
.field-help {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Checkbox groups */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-bottom: 0;
    transform: scale(1.2);
}

.checkmark {
    margin-left: 0.5rem;
}

/* Enhanced form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.form-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a4d2e;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #25603b;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Mobile number field styling */
#mobile-label input[required] {
    border-left: 3px solid #dc3545;
}

#add-mobile-label input[required] {
    border-left: 3px solid #dc3545;
}

/* Role-based field requirements */
.required-field {
    position: relative;
}

.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Contact information display */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #1a4d2e;
}

.contact-item i {
    color: #1a4d2e;
    width: 20px;
}

.contact-item .label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.contact-item .value {
    font-weight: 600;
    color: #1a4d2e;
}

.alert-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.alert-status.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-status.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-status i {
    font-size: 0.9rem;
}

/* User card enhancements */
.user-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #1a4d2e;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4d2e;
    margin: 0;
}

.user-role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.user-role-badge.super_admin {
    background: #dc3545;
    color: white;
}

.user-role-badge.admin {
    background: #007bff;
    color: white;
}

.user-role-badge.sales {
    background: #28a745;
    color: white;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.user-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-profile-btn {
    background: #17a2b8;
    color: white;
}

.edit-profile-btn:hover {
    background: #138496;
}

/* Export Data Styles */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.export-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.export-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #1a4d2e;
}

.export-card h4 {
    color: #1a4d2e;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.export-card p {
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.export-card button {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.export-card button:hover {
    background: #25603b;
}

#export-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

#export-status p {
    margin: 0;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .export-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .export-card {
        padding: 1rem;
    }
}