/* Volume Calculator Pro - Frontend Styles */

/* Main Styles */
.volumeCalculatorWrp {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    padding: 20px 0;
}

.calculate-widget-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs Navigation */
.jtabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.jtabs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.jtabs-nav li {
    flex: 1;
}

.jtabs-nav-link {
    display: block;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.jtabs-nav-link:hover,
.jtabs-nav-link.active {
    background: #fff;
    color: #007bff;
    border-bottom-color: #007bff;
}

.category-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs Content */
.jtabs-content {
    padding: 20px;
}

.jtab {
    display: none;
}

.jtab.active {
    display: block;
}

/* Items Grid */
.items-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.items-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.item-image {
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img,
.item-image .no-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.no-image {
    background: #f8f9fa;
    color: #6c757d;
    padding: 20px;
    border: 1px dashed #dee2e6;
}

.items_main {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Quantity Controls */
.quantity-controls {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-controls li {
    display: flex;
}

.indminus,
.indplus {
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.indminus:hover,
.indplus:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
}

/* Sidebar */
.calculate-widget-right {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.youritemslist {
    margin-bottom: 30px;
}

.title2 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.clubtotal {
    font-weight: bold;
    color: #007bff;
}

.item_list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.item_list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item_list .item-name {
    font-size: 14px;
    color: #495057;
}

.item_list .item-qty {
    font-weight: 600;
    color: #007bff;
}

.item_list .remove-item {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.item_list .remove-item:hover {
    color: #c82333;
}

/* Truck Box */
.truck-cube-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.truck-cube-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.turck-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.turck-value .total_volume {
    color: #fff;
}

.truck-box {
    margin-top: 15px;
}

.truck-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.selectdimage img {
    border-radius: 4px;
}

.vehicule {
    text-align: left;
}

.truck-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.booking {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.booking:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Custom Item Form */
.custom-item-form h4 {
    margin-bottom: 15px;
    color: #495057;
}

.custom-item-form .form-control {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.custom-item-form .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.custom-item-form .btn-primary {
    background: #007bff;
    color: white;
}

.custom-item-form .btn-primary:hover {
    background: #0056b3;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal h2 {
    margin-top: 0;
    color: #495057;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
}

.modal-content .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.modal-content .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.required {
    color: #dc3545;
}

.vcp-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vcp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#vcp-form-message.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

#vcp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .volumeCalculatorWrp {
        padding: 10px;
    }

    .jtabs-nav ul {
        flex-wrap: wrap;
    }

    .jtabs-nav-link {
        padding: 10px 5px;
        font-size: 12px;
    }

    .category-icon {
        width: 20px;
        height: 20px;
    }

    .jtabs-content {
        padding: 15px;
    }

    .items-box {
        padding: 10px;
        margin-bottom: 15px;
    }

    .item-image {
        height: 60px;
    }

    .calculate-widget-right {
        margin-top: 20px;
        padding: 15px;
    }

    .truck-details {
        flex-direction: column;
        text-align: center;
    }

    .vehicule {
        text-align: center;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.items-box {
    animation: fadeInUp 0.4s ease forwards;
}

/* Scrollbar */
.item_list::-webkit-scrollbar {
    width: 6px;
}

.item_list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.item_list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.item_list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal Form - 2 Column Layout */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-row .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-row .form-group input:focus {
    outline: none;
    border-color: #007bff;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }
}

/* Form - Additional Gap */
.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    margin-top: 10px;
}

.form-group.full-width label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group.full-width textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.form-group.full-width textarea:focus {
    outline: none;
    border-color: #007bfb;
}
?>

