.container-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Input with icon styles */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 40px; /* Make space for icon */
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-with-icon .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

/* Select with icon */
.input-with-icon select.form-control {
    padding-left: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 35px;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.suggestions-container {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    color: white;
    margin-top: 24px;
    width: 100%;
}

.btn-success:hover {
    background-color: #218838;
}

/* Results Section */
.calculation-results {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.result-label {
    font-size: 14px;
    color: #6B7280;
}

.result-value {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.result-value.with-unit::after {
    content: attr(data-unit);
    margin-left: 4px;
    color: #6B7280;
    font-size: 13px;
    font-weight: normal;
}

/* Total Price Section */
.total-price-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.total-price-tile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-price-tile .tile-icon {
    background: #28a745;
}

.total-price-tile .tile-icon i {
    color: white;
}

.total-price-tile .tile-value {
    font-size: 28px;
    color: #28a745;
}

/* Currency Formatting */
.currency::before {
    content: '$';
    margin-right: 2px;
}

/* Error States */
.form-control.error {
    border-color: #DC2626;
    background: #FEF2F2;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    display: none;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Grid Layout Styles */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.price-tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.price-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Highlight tile (for total price) */
.highlight-tile {
    background: #f8f9fa;
    border: 2px solid #28a745;
}

.highlight-tile .tile-icon {
    background: #28a745;
}

.highlight-tile .tile-icon i {
    color: white;
}

.highlight-tile .tile-value {
    color: #28a745;
    font-size: 24px;
}

.tile-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.tile-icon i {
    font-size: 20px;
    color: #007bff;
}

.tile-content {
    flex: 1;
}

.tile-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.tile-value {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.tile-value .unit {
    font-size: 14px;
    color: #6c757d;
    margin-left: 4px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container-calculator {
        margin: 10px;
        padding: 15px;
    }

    .price-grid {
        gap: 12px; /* Reduce gap on mobile */
    }

    .price-tile {
        padding: 12px; /* Reduce padding on mobile */
    }

    .tile-icon {
        width: 32px; /* Smaller icons on mobile */
        height: 32px;
        margin-right: 10px;
    }

    .tile-icon i {
        font-size: 16px; /* Smaller icon size on mobile */
    }

    .tile-label {
        font-size: 12px; /* Smaller label text on mobile */
    }

    .tile-value {
        font-size: 16px; /* Smaller value text on mobile */
    }

    .tile-value .unit {
        font-size: 12px;
    }

    .highlight-tile .tile-value {
        font-size: 20px; /* Slightly larger for total price but still compact */
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .price-grid {
        gap: 8px; /* Even smaller gap for very small devices */
    }

    .price-tile {
        padding: 10px;
    }

    .tile-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Order Status Styles */
.order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.completed {
    background-color: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Submit Button Styles */
#submit-order {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#submit-order:hover {
    background-color: #218838;
}

#submit-order:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Orders Table Styles */
.container-calculator table {
    margin-top: 20px;
}

.container-calculator table th {
    font-weight: 600;
    padding: 12px;
}

.container-calculator table td {
    padding: 12px;
    vertical-align: top;
}

.container-calculator table td strong {
    display: block;
    margin-bottom: 4px;
}

.container-calculator table td small {
    display: block;
    color: #666;
    line-height: 1.4;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-badge.status-processing {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-badge.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 8px;
}

.order-actions .button {
    padding: 4px 12px;
    font-size: 13px;
}

.order-actions .view-order {
    background-color: #007cba;
    color: #fff;
    border-color: #006ba1;
}

.order-actions .view-order:hover {
    background-color: #006ba1;
}

.order-actions .delete-order {
    background-color: #dc3545;
    color: #fff;
    border-color: #bd2130;
}

.order-actions .delete-order:hover {
    background-color: #bd2130;
}

/* Order Details Modal */
.order-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.order-details-modal .modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-details-modal .close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.order-details-modal .close-modal:hover {
    color: #333;
}

.order-details-modal h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #333;
}

.order-details-modal h3 {
    margin: 20px 0 10px;
    color: #444;
    font-size: 1.2em;
}

.order-details-modal .order-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.order-details-modal .total-price {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 1.1em;
}

.order-details-modal .order-date {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Orders Table Styles */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.orders-table tr:hover {
    background-color: #f8f9fa;
}

.orders-table .customer-details,
.orders-table .delivery-details {
    max-width: 250px;
}

.orders-table .price-details {
    white-space: nowrap;
}

.orders-table .actions {
    white-space: nowrap;
    text-align: right;
}

.orders-table .view-order,
.orders-table .delete-order {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.orders-table .view-order {
    background-color: #007bff;
    color: white;
}

.orders-table .view-order:hover {
    background-color: #0056b3;
}

.orders-table .delete-order {
    background-color: #dc3545;
    color: white;
}

.orders-table .delete-order:hover {
    background-color: #c82333;
}

.orders-table button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 