/* Odoo Vendor & Lead Forms - Enhanced Bootstrap UI */

/* ========================================
   Vendor Registration Form
   ======================================== */
/* 
.odoo-vendor-form-wrapper {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
} */

.odoo-vendor-form {
    text-align: start;
}

.input-group {
    gap: 3px;
}


.odoo-vendor-form-container {
    border-radius: 15px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.odoo-vendor-form-container .card-header {
    background: linear-gradient(135deg, #cc3333 0%, #6a0801 100%) !important;
}

.odoo-vendor-form-container .card-body {
    background: #ffffff;
}

.odoo-vendor-form .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #667eea;
}

.odoo-vendor-form .form-control {
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 15px;
}

.odoo-vendor-form .form-control:focus {
    border-color: #667eea;
    box-shadow: none;
}

.odoo-vendor-form .input-group:focus-within .input-group-text {
    border-color: #667eea;
    background-color: #e7eaf6;
}

.odoo-vendor-submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.odoo-vendor-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.odoo-vendor-submit-btn:active {
    transform: translateY(0);
}

.odoo-vendor-message {
    border-radius: 10px;
    font-weight: 500;
    animation: slideInDown 0.4s ease-out;
}

.odoo-vendor-message.success {
    background: linear-gradient(135deg, #cc3333 0%, #6a0801 100%) !important;
    color: white;
    border: none;
}

.odoo-vendor-message.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    border: none;
}

/* ========================================
   Lead/Interest Form
   ======================================== */

/* .odoo-lead-form-wrapper {
    padding: 40px 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    min-height: 100vh;
} */

.odoo-lead-form-container {
    border-radius: 15px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.odoo-lead-form-container .card-header {
   /* background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important; */
}

.odoo-lead-form-container .card-body {
    background: #ffffff;
}

.odoo-lead-user-info,
.odoo-lead-form-container .alert-info {
    border-left: 4px solid #0dcaf0;
    background: linear-gradient(90deg, #e7f7ff 0%, #ffffff 100%);
}

.vendor-checkboxes {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.vendor-checkbox-item {
    padding: 12px 15px;
    margin: 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.vendor-checkbox-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vendor-checkbox-item .form-check-input:checked ~ .form-check-label {
    color: #11998e;
    font-weight: 600;
}

.priority-options .form-check {
    margin-bottom: 10px;
}

.priority-options .badge {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.priority-options .form-check-input:checked ~ .form-check-label .badge {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.odoo-lead-submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.odoo-lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
}

.odoo-lead-submit-btn:active {
    transform: translateY(0);
}

.odoo-lead-message {
    border-radius: 10px;
    font-weight: 500;
    animation: slideInDown 0.4s ease-out;
}

.odoo-lead-message.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 20px;
}

.odoo-lead-message.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    border: none;
    padding: 20px;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Custom Scrollbar for Vendor List
   ======================================== */

.vendor-checkboxes::-webkit-scrollbar {
    width: 8px;
}

.vendor-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vendor-checkboxes::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.vendor-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   Loading State
   ======================================== */

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   Responsive Enhancements
   ======================================== */

@media (max-width: 768px) {
    .odoo-vendor-form-wrapper,
    .odoo-lead-form-wrapper {
        padding: 20px 0;
    }
    
    .odoo-vendor-form-container .card-header h3,
    .odoo-lead-form-container .card-header h3 {
        font-size: 1.5rem;
    }
    
    .vendor-checkboxes {
        max-height: 250px;
    }
    
    .priority-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .odoo-vendor-form-container .card-body,
    .odoo-lead-form-container .card-body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .odoo-vendor-form .form-control,
    .odoo-lead-form .form-control,
    .vendor-checkboxes {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #404040;
    }
    
    .odoo-vendor-form .input-group-text {
        background-color: #2a2a2a;
        color: #667eea;
        border-color: #404040;
    }
}

/* ========================================
   Additional Polish
   ======================================== */

.form-label {
    font-size: 15px;
    margin-bottom: 8px;
}

.form-text {
    font-size: 13px;
    color: #6c757d;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group-text i {
    width: 20px;
    text-align: center;
}

/* Bootstrap Icon fixes */
.bi {
    vertical-align: middle;
}

/* Focus ring enhancement */
.form-control:focus,
.form-check-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Success/Error message icons */
.odoo-vendor-message::before,
.odoo-lead-message::before {
    font-family: 'Bootstrap Icons';
    margin-right: 10px;
    font-size: 20px;
}

.odoo-vendor-message.success::before,
.odoo-lead-message.success::before {
  /* content: '\F26B'; /* check-circle-fill */
}

.odoo-vendor-message.error::before,
.odoo-lead-message.error::before {
    /* content: '\F659'; /* exclamation-triangle-fill */
}

.lead-bg {
    background: linear-gradient(135deg, #cc3333 0%, #6a0801 100%) !important;
}
