/* Elite Trade Stables Plugin Styles */

/* Login Form Styles */
body.ets-login-page {
    background-image: url('../images/login-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.ets-login-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.ets-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-image {
    max-width: 200px;
    max-height: 120px;
    margin: 0 auto 20px auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-image:not([src]),
.logo-image[src=""] {
    display: none;
}

.ets-logo h2 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ets-logo p {
    color: #7f8c8d;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.ets-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.ets-login-form input[type="text"],
.ets-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.ets-login-form input[type="text"]:focus,
.ets-login-form input[type="password"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #3498db;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Dashboard Styles */
.ets-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes logo white */
    display: block;
}

.header-logo:not([src]),
.header-logo[src=""] {
    display: none;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ets-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5em;
}

.company-name {
    color: #bdc3c7;
    font-size: 0.9em;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation Tabs */
.ets-nav-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-button {
    padding: 15px 25px;
    background: #ecf0f1;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #d5dbdb;
}

.tab-button.active {
    background: #3498db;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.stat-card h3 {
    color: #7f8c8d;
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Orders Section */
.orders-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.orders-header h3 {
    margin: 0;
    color: #2c3e50;
}

.orders-actions {
    display: flex;
    gap: 10px;
}

.orders-filters {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-form {
    margin: 0;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.table-container {
    overflow-x: auto;
}

/* Tables */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 800px;
}

.orders-table th,
.orders-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

.orders-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.orders-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.orders-table th.sortable:hover {
    background: #34495e;
}

.orders-table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    opacity: 0.5;
    font-size: 10px;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.orders-table tr[data-order-id] {
    cursor: pointer;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-weight: 600;
    color: #2c3e50;
}

.customer-phone {
    font-size: 12px;
    color: #7f8c8d;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date {
    font-weight: 600;
    color: #2c3e50;
}

.time {
    font-size: 12px;
    color: #7f8c8d;
}

.amount {
    font-weight: 600;
    color: #27ae60;
    text-align: right;
}

.actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-buttons button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-view-order {
    background: #3498db;
    color: white;
}

.btn-view-order:hover {
    background: #2980b9;
}

.btn-print-order {
    background: #95a5a6;
    color: white;
}

.btn-print-order:hover {
    background: #7f8c8d;
}

.btn-duplicate-order {
    background: #f39c12;
    color: white;
}

.btn-duplicate-order:hover {
    background: #e67e22;
}

/* Simple icon fonts using Unicode symbols */
.icon-eye::before { content: "👁"; }
.icon-print::before { content: "🖨"; }
.icon-copy::before { content: "📋"; }

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-link {
    padding: 8px 12px;
    text-decoration: none;
    color: #2c3e50;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-link.current {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #7f8c8d;
}

/* No Orders State */
.no-orders {
    text-align: center;
    padding: 60px 30px;
    color: #7f8c8d;
}

.no-orders-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-orders h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.no-orders p {
    margin: 0;
    line-height: 1.6;
}

.no-orders a {
    color: #3498db;
    text-decoration: none;
}

.no-orders a:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-pending {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-in-production {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-ready-for-delivery {
    background: #9b59b6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: #2ecc71;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-cancelled {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.placeholder-image {
    color: #7f8c8d;
    font-size: 14px;
}

.product-details {
    padding: 20px;
}

.product-details h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.product-details p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.product-sizes {
    font-size: 12px;
    color: #7f8c8d;
}

/* Special Offers */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offer-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.offer-card.current {
    border-left: 4px solid #27ae60;
}

.offer-card.upcoming {
    border-left: 4px solid #f39c12;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.offer-header h4 {
    margin: 0;
    color: #2c3e50;
}

.offer-discount {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.offer-expires,
.offer-starts {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 15px;
    font-weight: 600;
}

/* POS Documents */
.document-category {
    margin-bottom: 30px;
}

.document-category h4 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.documents-list {
    display: grid;
    gap: 15px;
}

.document-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-info h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.document-info p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.document-type {
    background: #34495e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.btn-download {
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.btn-download:hover {
    background: #2ecc71;
    color: white;
    text-decoration: none;
}

.btn-view-order {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-view-order:hover {
    background: #2980b9;
}

/* Order Form Specific */
.order-form-container {
    max-width: 800px;
}

.extras-list {
    display: grid;
    gap: 10px;
}

.extra-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
}

.extra-item label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.extra-item input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

.extra-item small {
    display: block;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

.checklist-items {
    display: grid;
    gap: 10px;
}

.checklist-items label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
}

.checklist-items input[type="checkbox"] {
    width: auto;
}

/* New Yes/No Checklist Styles */
.checklist-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.checklist-item > label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.yes-no-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.yes-no-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.yes-no-options label:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.yes-no-options input[type="radio"] {
    width: auto;
    margin: 0;
}

.yes-no-options input[type="radio"]:checked + span,
.yes-no-options label:has(input[type="radio"]:checked) {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.yes-no-options label:has(input[type="radio"]:checked) {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

/* Checklist Header and Expand Button */
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.checklist-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.btn-expand-checklist {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-expand-checklist:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.expand-icon {
    transition: transform 0.2s ease;
}

.btn-expand-checklist.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Complete Button and Progress */
.checklist-complete-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    text-align: center;
}

.btn-complete-checklist {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.btn-complete-checklist:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-complete-checklist:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-complete-checklist.all-answered {
    background: #28a745;
    animation: pulse 2s infinite;
}

.btn-complete-checklist.completed {
    background: #20c997;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.complete-icon {
    font-size: 18px;
}

.checklist-progress {
    margin-top: 15px;
}

#checklist-progress-text {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Checklist Animation */
.checklist-items {
    transition: all 0.3s ease;
    overflow: hidden;
}

.checklist-items.expanded {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Responsive design for checklist */
@media (max-width: 768px) {
    .checklist-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .checklist-item {
        padding: 15px;
    }
    
    .yes-no-options {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .yes-no-options label {
        justify-content: center;
        padding: 12px 16px;
    }
    
    .btn-complete-checklist {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.order-summary {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.order-summary h4 {
    margin: 0 0 15px 0;
    color: white;
}

.price-breakdown {
    display: grid;
    gap: 10px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.price-line.total {
    border-top: 2px solid #34495e;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.commission-section {
    border-top: 2px solid #34495e;
    padding-top: 15px;
    margin-top: 15px;
}

.commission-info {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.commission-info p {
    margin: 5px 0;
    font-size: 14px;
}

.commission-note {
    font-style: italic;
    opacity: 0.9;
}

.price-line.commission {
    background: rgba(52, 152, 219, 0.2);
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.price-line.vat {
    background: rgba(255, 193, 7, 0.1);
    padding: 8px;
    border-radius: 4px;
    font-size: 15px;
    border-left: 3px solid #ffc107;
}

.price-line.total-with-vat {
    border-top: 2px solid #e74c3c;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #e74c3c;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Admin Styles */
.ets-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-box .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.ets-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ets-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-logo {
        max-width: 150px;
        max-height: 90px;
    }
    
    .logo-image {
        max-width: 100px;
        max-height: 70px;
    }
    
    .ets-nav-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats,
    .products-grid,
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    /* Orders responsive design */
    .orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .orders-actions {
        justify-content: center;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 4px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .customer-info,
    .date-info {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ets-dashboard {
        padding: 10px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .orders-filters {
        padding: 15px;
    }
    
    .orders-header {
        padding: 15px;
    }
    
    .pagination {
        padding: 15px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 6px 2px;
        font-size: 11px;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .header-logo {
        max-width: 120px;
        max-height: 70px;
    }
    
    .logo-image {
        max-width: 80px;
        max-height: 60px;
    }
    
    .ets-header h2 {
        font-size: 1.2em;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.ets-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

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

.ets-notification.success {
    background: #27ae60;
}

.ets-notification.error {
    background: #e74c3c;
}

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

.ets-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.ets-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.ets-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.ets-modal-close:hover {
    color: #2c3e50;
}

/* POS Documents Styles */
.pos-documents {
    padding: 20px;
}

.pos-documents h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.document-category {
    margin-bottom: 40px;
}

.document-category h4 {
    color: #6c5ce7;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #6c5ce7;
}

.document-thumbnail {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.05);
}

.thumbnail-pdf,
.thumbnail-document {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    position: relative;
    overflow: hidden;
}

.thumbnail-pdf .pdf-loading {
    font-size: 12px;
    text-align: center;
    color: white;
    opacity: 0.8;
}

.thumbnail-pdf .pdf-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-pdf .pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pdf-icon,
.document-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pdf-text,
.document-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.document-info {
    flex: 1;
    margin-bottom: 15px;
}

.document-info h5 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.document-info p {
    color: #7f8c8d;
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.document-type {
    display: inline-block;
    background: #e9ecef;
    color: #6c5ce7;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.document-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-preview,
.btn-download {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-preview {
    background: #74b9ff;
    color: white;
}

.btn-preview:hover {
    background: #0984e3;
    transform: translateY(-1px);
}

.btn-download {
    background: #00b894;
    color: white;
}

.btn-download:hover {
    background: #00a085;
    transform: translateY(-1px);
}

.btn-download::before {
    content: "⬇";
    font-size: 16px;
}

.btn-preview::before {
    content: "👁";
    font-size: 16px;
}

/* Optional Extras Quantity Styling */
.extra-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.extra-item:hover {
    border-color: #6c5ce7;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}

.extra-checkbox {
    margin-bottom: 8px;
}

.extra-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.extra-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.extra-name {
    color: #2c3e50;
    margin-right: 8px;
}

.extra-price {
    color: #6c5ce7;
    font-weight: 600;
}

.extra-details {
    margin-bottom: 10px;
}

.extra-description {
    color: #7f8c8d;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.extra-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.extra-quantity label {
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.extra-quantity-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.extra-quantity-input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.extra-total-price {
    font-weight: 600;
    color: #6c5ce7;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #6c5ce7;
}

/* Show quantity when checkbox is checked */
.extra-item:has(.extra-checkbox-input:checked) .extra-quantity {
    display: flex !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .documents-list {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        padding: 15px;
    }
    
    .document-thumbnail {
        height: 100px;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .btn-preview,
    .btn-download {
        width: 100%;
    }
    
    .extra-quantity {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .extra-quantity-input {
        width: 100%;
    }
}

/* Chatbot Styles */
.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.chatbot-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.chatbot-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message .message-avatar {
    background: #28a745;
    color: white;
}

.message-content {
    background: white;
    padding: 15px 18px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

.user-message .message-content {
    background: #007bff;
    color: white;
}

.message-content p {
    margin: 0 0 10px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 5px 0;
}

.message-content strong {
    font-weight: 600;
}

.chatbot-input-container {
    padding: 25px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chatbot-input {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

#chatbot-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    font-weight: 500;
}

#chatbot-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#chatbot-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

#chatbot-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    min-width: 60px !important;
    width: auto !important;
    height: 36px !important;
}

#chatbot-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

#chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quick-questions {
    margin-top: 10px;
}

.quick-questions h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.quick-question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-question-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-question-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design for chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        height: 500px;
        margin: 10px;
    }
    
    .chatbot-messages {
        padding: 15px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chatbot-input-container {
        padding: 20px;
    }
    
    .chatbot-input {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    #chatbot-input {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    #chatbot-send {
        width: auto !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        height: 36px !important;
        min-width: 60px !important;
    }
    
    .quick-question-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .quick-question-btn {
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== INSTALLATION CALCULATOR STYLES ===== */

.ets-calculator {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.calculator-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.calculator-header p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

.calculator-form {
    margin-bottom: 30px;
}

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

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.calculator-form input[type="text"],
.calculator-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.calculator-form input[type="text"]:focus,
.calculator-form input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.calculator-form input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.calculator-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.btn-calculate {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-calculate:active {
    transform: translateY(0);
}

.calculator-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.calculator-results h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.breakdown-item.subtotal {
    font-weight: 600;
    color: #2c3e50;
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
}

.breakdown-item span:first-child {
    color: #6c757d;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #2c3e50;
}

.total-cost {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
}

.total-cost strong {
    font-size: 20px;
}

.calculator-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

.calculator-loading p {
    margin: 0;
    position: relative;
}

.calculator-loading p::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Calculator */
@media (max-width: 768px) {
    .ets-calculator {
        margin: 10px;
        padding: 20px;
    }
    
    .calculator-header h3 {
        font-size: 20px;
    }
    
    .calculator-form input[type="text"],
    .calculator-form input[type="number"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-calculate {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .total-cost {
        font-size: 16px;
    }
    
    .total-cost strong {
        font-size: 18px;
    }
}

/* ===== INSTALLATION CALCULATOR IN ORDER FORM ===== */

.installation-calculator-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.calculator-toggle {
    margin-bottom: 15px;
}

.calculator-toggle label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.calculator-toggle input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.installation-calculator-form {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-top: 15px;
}

.installation-calculator-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.installation-calculator-form .form-row .form-group {
    flex: 1;
}

.installation-calculator-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.installation-calculator-form input[type="text"],
.installation-calculator-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.installation-calculator-form input[type="text"]:focus,
.installation-calculator-form input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.installation-calculator-form input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.1);
}

.installation-calculator-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Specific rule for the two-vehicle checkbox */
.installation-calculator-form label input[type="checkbox"] {
    margin-right: 12px !important;
}

/* Override form-group label styling for checkbox labels */
.installation-calculator-form .form-group label:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* Delivery Calculator Styles */
.delivery-calculator-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.delivery-calculator-form {
    margin-top: 15px;
}

.delivery-calculator-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.delivery-calculator-form input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.delivery-calculator-form input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.1);
}

.delivery-calculator-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Specific rule for the two-vehicle checkbox in delivery form */
.delivery-calculator-form label input[type="checkbox"] {
    margin-right: 12px !important;
}

/* Override form-group label styling for checkbox labels in delivery form */
.delivery-calculator-form .form-group label:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.delivery-cost-result {
    background: #fff;
    border: 1px solid #d4edda;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.delivery-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.btn-calculate-installation {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate-installation:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-calculate-delivery {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate-delivery:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.installation-cost-result {
    background: #fff;
    border: 1px solid #d4edda;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.cost-display {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #155724;
}

.cost-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-add-cost,
.btn-remove-cost {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cost {
    background: #28a745;
    color: white;
}

.btn-add-cost:hover {
    background: #218838;
}

.btn-remove-cost {
    background: #dc3545;
    color: white;
}

.btn-remove-cost:hover {
    background: #c82333;
}

.installation-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.installation-loading p {
    margin: 0;
    position: relative;
}

.installation-loading p::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive Design for Installation Calculator in Order Form */
@media (max-width: 768px) {
    .installation-calculator-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cost-actions {
        flex-direction: column;
    }
    
    .btn-add-cost,
    .btn-remove-cost {
        width: 100%;
    }
}