* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #343a40;
    background-color: #f8f9fa;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #343a40, #495057);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-brand i {
    color: #007bff;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-item:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.navbar-item.active {
    color: white;
    background-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 60px);
}

.container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Page Headers */
.admin-header, .page-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.admin-header h1, .page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.admin-header p, .page-header p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Modern Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
}

.card-body {
    padding: 2rem;
}

/* Modern Buttons */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn-secondary:hover {
    color: #495057;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.btn-success {
    color: white;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

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

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Modern Form Controls */
.form-control, input[type="text"], input[type="number"], input[type="email"], select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #343a40;
}

/* Modern Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .admin-header, .page-header {
        padding: 1.5rem;
    }
    
    .admin-header h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background-color: #404040;
    color: white;
    padding: 1.5rem 2rem;
}

.card-header h2, .card-header h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i, .card-header h3 i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.card-body {
    padding: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #404040;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: white;
    appearance: none; /* Remove default dropdown arrow */
}

.form-control:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* Custom dropdown arrow for select elements */
select.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2.5rem;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
}

.required {
    color: #e74c3c;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #404040;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-success {
    background-color: #404040;
    color: white;
}

.btn-success:hover {
    background-color: #333;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Customer Info Page */
.customer-form {
    padding: 0.5rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.customer-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

.customer-form button {
    width: 100%;
    margin-top: 0.5rem;
}

/* Calculator Page */
.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calculator-header h1 {
    font-weight: 300;
    color: #404040;
}

.calculator-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-price-box {
    background-color: #404040;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-value {
    font-size: 2rem;
    font-weight: 600;
}

/* Add Item Form */
.add-item-form {
    padding: 0.5rem 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.flex-grow {
    flex: 1;
}

.dimension-input {
    width: 120px;
    text-align: center;
    font-weight: 500;
}

.add-item-form .form-group {
    margin-bottom: 0;
    position: relative;
}

.add-item-form .form-control {
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

.add-item-form .form-control:focus {
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
}

.add-item-form select.form-control {
    cursor: pointer;
}

.add-item-form button.btn {
    height: 48px;
    min-width: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items List */
.items-list {
    min-height: 200px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.item-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.item-row:hover {
    background-color: #f8f9fa;
}

.item-info {
    flex: 1;
}

.item-description {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-details {
    font-size: 0.9rem;
    color: #666;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #404040;
    margin-right: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.item-row:hover .item-actions {
    opacity: 1;
}

.btn-edit, .btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-edit {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #545b62;
    border-color: #545b62;
    color: white;
}

.btn-edit i {
    font-size: 0.9rem;
}

.btn-remove {
    color: #666;
}

.btn-remove:hover {
    background-color: #666;
    color: white;
}

.btn-secondary {
    background-color: #666;
    color: white;
    margin-left: 0.5rem;
}

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

.btn-add-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #404040;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.btn-add-round:hover {
    background-color: #333;
    transform: scale(1.1);
}

/* Search Bar */
.search-bar {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.search-bar .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar .form-control:focus {
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
    transform: translateY(-1px);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    gap: 1rem;
}

.btn-pagination {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-pagination:hover:not(:disabled) {
    background-color: #666;
    color: white;
    border-color: #666;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.pagination-info .current-page {
    font-weight: 600;
    color: #404040;
}

/* Search highlighting */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* Hidden items during search/pagination */
.item-summary.hidden {
    display: none !important;
}

.actions-row {
    text-align: center;
    margin-top: 2rem;
}

/* Admin Page */
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-weight: 300;
    color: #404040;
    margin-bottom: 0.5rem;
}

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

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Clean Admin Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    flex: 1;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Item Lists */
.item-list {
    min-height: 200px;
}

.item-summary {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.item-summary:hover {
    background-color: #f8f9fa;
}

.item-summary:last-child {
    border-bottom: none;
}

.item-summary .item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #404040;
}

.item-price {
    font-size: 0.9rem;
    color: #666;
}

.item-summary .item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.item-summary:hover .item-actions {
    opacity: 1;
}

.price-input-group {
    margin-bottom: 1.25rem;
}

.price-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.input-with-prefix {
    display: flex;
    align-items: center;
}

.prefix {
    background-color: #ecf0f1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #666;
}

.input-with-prefix .form-control {
    border-radius: 0 4px 4px 0;
}

.price-input {
    width: 100%;
}

.admin-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Admin Add/Delete Features */
.input-group-with-delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group-with-delete .input-with-prefix {
    flex: 1;
}

/* Delete button styling moved to line 1054 for consistency */

.add-new-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd;
}

.add-new-section h4 {
    margin-bottom: 1rem;
    color: #404040;
    font-weight: 600;
}

.add-new-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-new-form .form-control {
    width: 100%;
    margin-bottom: 0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.add-new-form .input-with-prefix {
    width: 100%;
    display: flex;
}

.add-new-form .input-with-prefix .form-control {
    flex: 1;
}

.add-new-form .input-with-prefix .prefix {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.add-new-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.add-new-form .form-group {
    margin-bottom: 0;
}

.add-new-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #404040;
}

/* Dimension-based Pricing Calculator */
.pricing-calculator {
    flex: 1;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.dimension-calc, .dimension-calc-service {
    width: 80px;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.dimension-separator, .equals {
    font-weight: bold;
    color: #666;
    font-size: 1.1rem;
    margin: 0 0.25rem;
}

.total-price-input {
    min-width: 150px;
}

.total-price, .total-price-service {
    font-weight: 600;
    color: #404040;
}

.calculated-result {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #666;
}

.calculated-result small {
    color: #666;
    font-weight: 500;
}

.calculated-result span {
    font-weight: 600;
    color: #404040;
}

@media (max-width: 768px) {
    .dimension-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dimension-calc, .dimension-calc-service {
        width: 100%;
        text-align: left;
    }
    
    .dimension-separator, .equals {
        text-align: center;
        margin: 0.25rem 0;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 600px;
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #404040;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.modal-content h3 {
    color: #404040;
    margin-bottom: 1rem;
}

.modal-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-total {
    font-size: 1.2rem;
    margin: 1rem 0;
}

/* Success Modal */
.success-icon {
    font-size: 4rem;
    color: #404040;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.quote-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.quote-summary .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.quote-summary .detail-label {
    font-weight: 500;
    color: #404040;
}

.quote-summary .detail-value {
    font-weight: 600;
    color: #404040;
    font-size: 1.1rem;
}

/* Pricing Section in Modal */
.pricing-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pricing-section h4 {
    margin: 0 0 0.5rem 0;
    color: #404040;
    font-size: 1rem;
    font-weight: 600;
}

.help-text {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #666;
    cursor: pointer;
}

.checkbox-label .checkmark {
    margin-left: 0.25rem;
    color: #555;
    font-size: 0.95rem;
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #404040;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(400px);
    transition: transform 0.3s;
}

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

/* Quote History Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.quote-table th,
.quote-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.quote-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #404040;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-table tbody tr {
    transition: background-color 0.3s;
}

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

.actions-cell {
    white-space: nowrap;
}

.btn-action {
    background: none;
    border: 1px solid transparent;
    padding: 0.4rem 0.8rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.btn-view {
    color: #666;
}

.btn-view:hover {
    border-color: #666;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}

.btn-delete i {
    font-size: 0.9rem;
}

/* Quote Details Modal */
.quote-info,
.quote-items,
.quote-total {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.quote-info h4,
.quote-items h4,
.quote-total h4 {
    margin: 0 0 1rem 0;
    color: #404040;
    font-size: 1.1rem;
    font-weight: 600;
}

.quote-info p {
    margin: 0.5rem 0;
    color: #666;
}

.item-detail {
    background-color: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border-left: 3px solid #666;
}

.item-detail p {
    margin: 0.25rem 0;
    color: #666;
}

.quote-total {
    text-align: center;
    background-color: #404040;
    color: white;
}

.quote-total h4 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

/* Responsive Table */
@media (max-width: 768px) {
    .quote-table th,
    .quote-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .quote-table th {
        font-size: 0.75rem;
    }
    
    .btn-action {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quote-table {
        font-size: 0.75rem;
    }
    
    .quote-table th,
    .quote-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .quote-table th {
        font-size: 0.7rem;
    }
}

/* Quote Details Page */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
    margin-right: 1rem;
}

.detail-value {
    color: #404040;
    text-align: right;
    flex-grow: 1;
}

.total-row {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd;
    border-bottom: none;
}

.total-row .detail-label,
.total-row .detail-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #404040;
}

.breakdown-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.breakdown-table .quote-table {
    min-width: 800px;
}

.item-type {
    text-transform: capitalize;
    font-weight: 500;
}

.price-cell {
    font-weight: 600;
    color: #404040;
    white-space: nowrap;
}

.total-footer td {
    padding: 1rem 0.75rem;
    background-color: #f8f9fa;
    font-size: 1.1rem;
}

.text-right {
    text-align: right;
}

.cost-breakdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.cost-breakdown h4 {
    margin: 0 0 1rem 0;
    color: #404040;
    font-size: 1.1rem;
    font-weight: 600;
}

.breakdown-details {
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .dimension-input {
        width: 100%;
    }
    
    .calculator-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        padding: 1.25rem 1.5rem;
    }
    
    .card-header h2, .card-header h3 {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .customer-info-card {
        margin: 1rem auto;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background-color: #404040;
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-form {
    padding: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #404040;
}

.login-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #404040;
    box-shadow: 0 0 0 2px rgba(64, 64, 64, 0.1);
}

.btn-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
}

.error-message {
    background-color: #fee;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #fbb;
    font-size: 0.9rem;
}

.login-footer {
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Logout button styling */
.nav-logout {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
}

.nav-logout:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Checkbox styling for Remember Me */
.checkbox-label {
    display: flex !important;
    align-items: center;
    margin-bottom: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-input {
    width: auto !important;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-text {
    color: #404040;
    font-size: 0.9rem;
}

/* Tutorial Page Styles */
.tutorial-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.tutorial-header h1 {
    color: #404040;
    margin-bottom: 0.5rem;
}

.tutorial-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tutorial-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.version-badge {
    background-color: #404040;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.update-date {
    color: #666;
    font-size: 0.9rem;
}

/* Tutorial Navigation */
.tutorial-nav {
    margin-bottom: 2rem;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-tab:hover {
    border-color: #404040;
    background-color: #f8f9fa;
}

.nav-tab.active {
    border-color: #404040;
    background-color: #404040;
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
}

/* Tutorial Content */
.tutorial-module {
    display: none;
}

.module-header {
    text-align: center;
    margin-bottom: 2rem;
}

.module-header h2 {
    color: #404040;
    margin-bottom: 0.5rem;
}

.module-description {
    color: #666;
    font-size: 1.1rem;
}

.tutorial-sections {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #404040;
    border-bottom: 2px solid #404040;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.steps-container {
    space-y: 1.5rem;
}

.tutorial-step {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tutorial-step:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #404040;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    background-color: #404040;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-title {
    color: #404040;
    margin: 0;
    font-size: 1.1rem;
}

.step-content {
    margin-left: 3rem;
}

.step-description {
    font-weight: 500;
    color: #404040;
    margin-bottom: 0.5rem;
}

.step-details {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-tips {
    background-color: #f8f9fa;
    border-left: 4px solid #404040;
    padding: 1rem;
    border-radius: 4px;
}

.step-tips h5 {
    margin: 0 0 0.5rem 0;
    color: #404040;
}

.step-tips ul {
    margin: 0;
    padding-left: 1.2rem;
}

.step-tips li {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Future Modules */
.future-modules {
    margin: 3rem 0;
    text-align: center;
}

.future-modules h2 {
    color: #404040;
    margin-bottom: 1rem;
}

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

.future-card {
    background: white;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.future-card:hover {
    border-color: #404040;
    background-color: #f8f9fa;
}

.future-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.future-card h3 {
    color: #404040;
    margin-bottom: 0.5rem;
}

.future-card p {
    color: #666;
    margin-bottom: 1rem;
}

.coming-soon-badge {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

/* Support Section */
.tutorial-support {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.tutorial-support h2 {
    color: #404040;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.support-item h4 {
    color: #404040;
    margin-bottom: 0.5rem;
}

.support-item p {
    color: #666;
    margin: 0;
}

/* Tutorial Actions */
.tutorial-actions {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Tutorial */
@media (max-width: 768px) {
    .tutorial-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .step-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .tutorial-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tutorial-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Navbar Responsive Fixes */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Dashboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.dashboard-header h1 {
    color: #404040;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #666;
    font-size: 1.1rem;
    opacity: 0.8;
}

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

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #404040;
}

.dashboard-icon {
    margin-bottom: 1.5rem;
}

.dashboard-icon i {
    font-size: 3rem;
    color: #404040;
    opacity: 0.8;
}

.dashboard-content h3 {
    color: #404040;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dashboard-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-dashboard {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 64, 64, 0.2);
}

.dashboard-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 2rem;
}

.dashboard-footer p {
    color: #666;
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .dashboard-icon i {
        font-size: 2.5rem;
    }
}

/* Materials Breakdown Styles */
.material-requirement {
    margin-bottom: 2rem;
}

.material-requirement h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    font-size: 1.2rem;
}

.material-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.material-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

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

.sheets-needed {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.items-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.items-breakdown h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.items-list {
    list-style: none;
    padding: 0;
}

.items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.items-list li:last-child {
    margin-bottom: 0;
}

.item-desc {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.item-dims {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

.item-qty {
    color: #e74c3c;
    font-weight: 600;
    margin: 0 0.5rem;
}

.item-volume {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
}

.material-separator {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

/* Responsive Materials Section */
@media (max-width: 768px) {
    .material-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .items-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .item-desc {
        font-size: 0.95rem;
    }
    
    .item-dims, .item-qty, .item-volume {
        font-size: 0.85rem;
    }
}