/**
 * DTF Transfer Calculator - Frontend Styles
 */

/* Main Container */
.dtf-calculator-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.dtf-calculator-box {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Title */
.dtf-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Selectors Container */
.dtf-selectors {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dtf-selector-group {
    flex: 1;
    min-width: 200px;
}

.dtf-selector-full {
    width: 100%;
    flex: none;
}

/* Labels */
.dtf-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
}

.dtf-label-small {
    font-weight: bold;
    color: #6c757d;
    font-size: 13px;
}

/* Dropdowns */
.dtf-select,
.dtf-select-with-price {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dtf-select-with-price {
    font-family: monospace;
}

.dtf-select:hover,
.dtf-select-with-price:hover {
    border-color: #80bdff;
}

.dtf-select:focus,
.dtf-select-with-price:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Dimensions Display */
.dtf-dimensions-display {
    background: white;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.dtf-dimensions-text {
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

/* Quantity Controls */
.dtf-quantity-group {
    margin-bottom: 20px;
}

.dtf-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dtf-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.dtf-qty-btn:hover {
    background: #007bff;
    color: white;
}

.dtf-quantity-input {
    width: 80px;
    padding: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ced4da;
    border-radius: 5px;
}

.dtf-quantity-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Price Display */
.dtf-price-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.dtf-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.dtf-price-label {
    font-size: 15px;
    color: #495057;
}

.dtf-price-value {
    font-size: 15px;
    color: #212529;
}

.dtf-total-row {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
}

.dtf-grand-total-row {
    background: #e7f3ff;
    padding: 12px;
    border-radius: 5px;
    margin-top: 8px;
}

.dtf-grand-total {
    color: #007bff;
    font-size: 20px !important;
}

/* Error Message */
.dtf-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Add to Cart Section */
.dtf-add-to-cart-section {
    margin-top: 20px;
    text-align: center;
}

.dtf-add-to-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dtf-add-to-cart-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dtf-add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dtf-add-to-cart-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* File Upload */
.dtf-file-upload-group {
    margin-bottom: 20px;
}

.dtf-file-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px dashed #ced4da;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dtf-file-input:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.dtf-file-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #e7f3ff;
}

.dtf-help-text {
    font-size: 12px;
    color: #6c757d;
    margin: 5px 0 10px 0;
    font-style: italic;
}

/* Upload Progress Bar */
.dtf-upload-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.dtf-progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.dtf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

.dtf-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

#dtf-progress-percent {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

#dtf-progress-status {
    color: #6c757d;
    font-style: italic;
}

.dtf-file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-top: 10px;
}

.dtf-preview-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    background: 
        repeating-conic-gradient(#f0f0f0 0% 25%, white 0% 50%) 
        50% / 20px 20px;
}

.dtf-file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dtf-file-name {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.dtf-remove-file-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #dc3545;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.dtf-remove-file-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dtf-selectors {
        flex-direction: column;
    }
    
    .dtf-selector-group {
        width: 100%;
        min-width: auto;
    }
    
    .dtf-calculator-box {
        padding: 15px;
    }
    
    .dtf-title {
        font-size: 18px;
    }
}
