/* customer-area.css - Área do Cliente Integrada ao Site */
:root {
    --primary-color: #FF0000;
    --primary-dark: #CC0000;
    --secondary-color: #333333;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --border-color: #E5E7EB;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Layout Principal - SEM SIDEBAR */
.customer-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-color);
}

.customer-wrapper .customer-main {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Header da Página */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 14px;
}

/* Navegação por Tabs Horizontal - PADRÃO PREMIUM PNEUZAGO */
.customer-wrapper .customer-main .customer-nav {
    background: white !important;
    border-radius: 16px !important;
    padding: 10px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    border: 1px solid var(--border-color) !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.customer-wrapper .customer-main .customer-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.customer-wrapper .customer-main .nav-tab {
    flex: 1 1 auto !important;
    min-width: 80px !important;
    padding: 12px 10px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #6B7280 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 2px solid transparent !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.customer-wrapper .customer-main .nav-tab i {
    font-size: 14px !important;
}

.customer-wrapper .customer-main .nav-tab:hover {
    background: #FFF5F5 !important;
    color: var(--primary-color) !important;
    border-color: #FFE5E5 !important;
}

.customer-wrapper .customer-main .nav-tab.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2) !important;
}

/* Seções de Conteúdo */
.content-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f4f4f4;
}

.content-section h2 i {
    color: var(--primary-color);
}

/* Cards de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.stat-card .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

/* Badges de Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.info {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.danger {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.primary {
    background: #FFE5E5;
    color: #CC0000;
}

.status-badge.secondary {
    background: #F3F4F6;
    color: #4B5563;
}

/* Botões */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFF5F5;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

/* Formulários */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Cards de Pedidos */
.orders-grid {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f4f4f4;
}

.order-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.order-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.order-detail-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: #f4f4f4;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid #f4f4f4;
    font-size: 14px;
}

tr:hover {
    background: #FAFAFA;
}

/* Progresso */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #f4f4f4;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 12px;
    border-left: 4px solid;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-color: #10B981;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: #F59E0B;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #EF4444;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #3B82F6;
}

/* Responsivo */
@media (max-width: 768px) {
    .customer-main {
        padding: 20px 16px 40px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .customer-nav {
        flex-wrap: nowrap;
        padding: 8px;
    }

    .nav-tab {
        min-width: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .order-details {
        grid-template-columns: 1fr;
    }
}