/* customer.css - Customer Interface Styles */

/* --- Dashboard --- */
.bim-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.bim-dashboard-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.bim-dashboard-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.bim-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Order Form --- */
.bim-product-entry {
    background: #fff;
    border-radius: var(--bim-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--bim-shadow-soft);
    position: relative;
    border-left: 5px solid transparent;
    transition: border-color 0.3s;
}

.bim-product-entry:hover {
    border-left-color: #d63031;
}

.bim-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 15px;
}

/* --- Tracking View --- */
.bim-tracking-header {
    background: var(--bim-gradient-dark);
    color: #fff;
    padding: 40px 20px;
    border-radius: var(--bim-radius);
    margin-bottom: -30px;
    position: relative;
    z-index: 1;
}

.bim-tracking-header h1,
.bim-tracking-header h2 {
    color: #fff;
}

.bim-current-status-card {
    background: #fff;
    border-radius: var(--bim-radius);
    box-shadow: var(--bim-shadow-hover);
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bim-status-icon-lg {
    font-size: 64px;
    margin-bottom: 20px;
}

/* Timeline adjustments for Customer */
.bim-tracking-timeline .bim-timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.bim-tracking-timeline .bim-timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: #e0e0e0;
}

.bim-tracking-timeline .bim-timeline-item:last-child::before {
    display: none;
}

.bim-timeline-marker {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    z-index: 2;
    flex-shrink: 0;
}

.bim-timeline-completed .bim-timeline-marker {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.bim-timeline-current .bim-timeline-marker {
    border-color: #2196f3;
    color: #2196f3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.bim-timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    flex-grow: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* --- Quote View --- */
.bim-quote-view {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.bim-quote-main {
    flex: 2;
    min-width: 600px;
}

.bim-quote-sidebar {
    flex: 1;
    min-width: 300px;
}

.bim-quote-total-card {
    background: var(--bim-gradient-primary);
    color: #fff;
    padding: 30px;
    border-radius: var(--bim-radius);
    text-align: center;
}

.bim-quote-total-amount {
    font-size: 3em;
    font-weight: 800;
    margin: 10px 0;
}

.bim-quote-total-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- Auth Modal --- */
.bim-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bim-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: bimFadeIn 0.3s ease;
}

.bim-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: bimSlideUp 0.3s ease;
    z-index: 1;
}

.bim-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.bim-modal-close:hover {
    color: #333;
}

.bim-auth-modal-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #f1f2f6;
}

.bim-auth-modal-header h2 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #2d3436;
}

.bim-auth-modal-header p {
    color: #636e72;
    margin: 0;
    font-size: 15px;
}

.bim-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f2f6;
    padding: 0 40px;
}

.bim-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #636e72;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.bim-auth-tab:hover {
    color: #2d3436;
}

.bim-auth-tab.active {
    color: #d63031;
    border-bottom-color: #d63031;
}

.bim-auth-tabs-content {
    padding: 30px 40px 40px;
}

.bim-auth-tab-pane {
    display: none;
}

.bim-auth-tab-pane.active {
    display: block;
    animation: bimFadeIn 0.3s ease;
}

.bim-auth-form .bim-form-group {
    margin-bottom: 20px;
}

.bim-auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
}

.bim-auth-form .bim-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.bim-auth-form .bim-input:focus {
    border-color: #d63031;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
}

.bim-form-group-checkbox {
    margin-bottom: 24px;
}

.bim-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.bim-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bim-auth-error {
    background: #ff7675;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: bimShake 0.4s ease;
}

.bim-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.bim-auth-footer a {
    color: #d63031;
    text-decoration: none;
    font-weight: 600;
}

.bim-auth-footer a:hover {
    text-decoration: underline;
}

.bim-auth-footer small {
    color: #636e72;
    display: block;
    line-height: 1.4;
}

.bim-help-text {
    display: block;
    font-size: 13px;
    color: #636e72;
    margin-top: 6px;
}

/* Animations */
@keyframes bimFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bimSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bimShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes bimPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(214, 48, 49, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(214, 48, 49, 0.6);
    }
}

.bim-pulse-animation {
    animation: bimPulse 1s ease-in-out 3;
}

/* Spinner */
.bim-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f2f6;
    border-top-color: #d63031;
    border-radius: 50%;
    animation: bimSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes bimSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bim-auth-success {
    animation: bimFadeIn 0.3s ease;
}

.bim-auth-success h3 {
    font-size: 24px;
    color: #27ae60;
}

.bim-auth-success p {
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {

    .bim-order-detail-wrapper,
    .bim-quote-view {
        flex-direction: column;
    }

    .bim-main-content,
    .bim-sidebar,
    .bim-quote-main,
    .bim-quote-sidebar {
        min-width: 100%;
    }

    .bim-modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .bim-auth-modal-header,
    .bim-auth-tabs,
    .bim-auth-tabs-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bim-auth-tab {
        font-size: 14px;
        padding: 12px 10px;
    }
}