/* ==========================================
   CUSTOMER-FACING UI ENHANCEMENTS
   ========================================== */

/* ===== Form Enhancements ===== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 14px;
}

.form-label i {
    margin-right: 6px;
    color: #667eea;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.required-field em,
.required-marker {
    color: #dc3545;
    font-weight: bold;
    font-style: normal;
}

/* ===== Password Toggle ===== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #495057;
}

/* ===== Alert/Message Enhancements ===== */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert i {
    margin-right: 12px;
    font-size: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* ===== Validation Messages ===== */
.text-danger,
.field-validation-error {
    color: #dc3545 !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Remove auto-icons from validation messages */
.field-validation-error {
    color: #dc3545 !important;
    font-size: 13px;
}

.validation-summary-errors {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors ul li {
    color: #721c24;
    margin-bottom: 5px;
}

/* ===== Button Enhancements ===== */
.btn-yellow,
.btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-yellow:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.btn-gray {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-gray:hover {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
    transform: translateY(-2px);
}

/* ===== Empty Cart Message ===== */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-cart-message i {
    font-size: 80px;
    color: #6c757d;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-message h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 24px;
}

.empty-cart-message p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* ===== Success Confirmation ===== */
.success-confirmation {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: successPulse 1.5s ease-in-out;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-confirmation h3 {
    color: #155724;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-confirmation p {
    color: #155724;
    font-size: 16px;
    margin-bottom: 10px;
}

/* ===== Loading Indicator ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Cart Item Delete Confirmation ===== */
.cart-delete {
    color: #dc3545;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 4px;
    display: inline-block;
}

.cart-delete:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* ===== Promo Code Section ===== */
.promo-code-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed #2196f3;
}

.promo-code-section h4 {
    color: #1565c0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.promo-code-section h4 i {
    margin-right: 10px;
    font-size: 24px;
}

.promo-badge {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-badge:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

/* ===== Order Summary Card ===== */
.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.order-summary-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.order-summary-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #28a745;
}

/* ===== Checkout Step Indicators ===== */
.shopping-cart-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.shopping-cart-title span {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.shopping-cart-title h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

/* ===== Responsive Improvements ===== */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-yellow,
    .btn-primary,
    .btn-gray {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .success-confirmation {
        padding: 30px 20px;
    }
    
    .success-confirmation h3 {
        font-size: 22px;
    }
}

/* ===== Input Group Icons ===== */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-icon-wrapper .form-control {
    padding-left: 45px;
}

/* ===== Artwork Upload Section Enhancement ===== */
.artwork-upload {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #ff9800;
}

.artwork-upload p {
    margin-bottom: 15px;
    color: #e65100;
    font-weight: 600;
}

.artwork-upload .upload-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.artwork-upload .upload-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
}

/* ===== Guest User Notice ===== */
.guest-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guest-notice strong {
    color: #1565c0;
    font-size: 16px;
}

.guest-notice .btn {
    margin-top: 10px;
}

/* ===== File Upload Enhancement ===== */
.file-upload {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.file-upload-label i {
    margin-right: 8px;
}

/* ==========================================
   SHOPPING CART ENHANCEMENTS
   ========================================== */

.btn-discount {
    background-color: #28a745;
}

.btn-show-offers {
    background-color: #17a2b8;
    margin-top: 10px;
}

.promo-codes-container {
    margin-top: 45px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.promo-codes-container h4 {
    margin-top: 0;
}

.promo-codes-container ul {
    list-style: none;
    padding-left: 0;
}

.promo-codes-container li {
    margin-bottom: 5px;
}

.cart-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.file-preview-card {
    width: 130px;
    min-height: 170px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.file-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.file-preview-card figure {
    margin: 0;
}

.file-preview-card figcaption {
    font-size: 0.85rem;
    margin-top: 6px;
    color: #333;
    word-break: break-word;
}

.file-icon {
    font-size: 2rem;
    color: #666;
    margin-bottom: 5px;
}

.file-icon i {
    font-size: 24px;
    color: #007bff;
}

.file-icon span {
    display: block;
    font-size: 0.85rem;
    word-break: break-word;
}

.cart-delete {
    color: #dc3545 !important;
    text-decoration: none;
    transition: all 0.3s;
}

.cart-delete:hover {
    color: #c82333 !important;
    transform: scale(1.2);
}

.cart-delete i {
    font-size: 18px;
}

/* ==========================================
   LOGIN & REGISTER PAGE ENHANCEMENTS
   ========================================== */

.returning-title h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.returning-title h3 i {
    margin-right: 8px;
    color: #667eea;
}

.login-returning-block {
    margin-bottom: 20px;
}

.returning-block {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.connect-facebook-button .btn-gray {
    width: 100%;
    background: #3b5998;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.connect-facebook-button .btn-gray:hover {
    background: #2d4373;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3);
}

.connect-facebook-button .btn-gray i {
    margin-right: 8px;
}

.form-submit .btn-yellow {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.form-submit .btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-submit .btn-yellow i {
    margin-right: 8px;
}
