/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CORREÇÃO DO MODAL - FORÇA OCULTO */
#newCustomerModal,
#new-customer-modal,
.modal:not(.show),
[id*="modal"]:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

/* Quando explicitamente mostrado */
#newCustomerModal.show,
#new-customer-modal.show,
.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 9999 !important;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Layout Principal */
.main-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    background: #34495e;
    border-bottom: 1px solid #3d5271;
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #34495e;
    color: white;
    border-left-color: #3498db;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Header */
.header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Conteúdo da Página */
.page-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Formulários */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-help {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

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

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Matriz de Produtos */
.matriz-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.produto-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.produto-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.matriz-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.matriz-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    background: white;
    font-size: 0.9rem;
}

.matriz-table th,
.matriz-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.matriz-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.color-header {
    background: #e9ecef !important;
    text-align: left !important;
    min-width: 120px;
}

.size-header {
    min-width: 80px;
    background: #f1f3f4 !important;
}

.total-header {
    background: #e3f2fd !important;
    color: #1976d2;
    min-width: 80px;
}

.color-cell {
    text-align: left !important;
    font-weight: 600;
    min-width: 120px;
    border-right: 2px solid #dee2e6;
}

.qty-cell {
    padding: 4px;
}

.matriz-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.matriz-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.row-total,
.col-total {
    background: #e3f2fd;
    font-weight: bold;
    color: #1976d2;
}

.col-value {
    background: #e8f5e8;
    font-weight: bold;
    color: #2e7d32;
    font-size: 0.85rem;
}

.grand-total,
.grand-value {
    background: #fff3e0;
    font-weight: bold;
    color: #f57c00;
    font-size: 1rem;
}

.total-label {
    background: #f5f5f5 !important;
    font-weight: bold;
    text-align: right !important;
    padding-right: 15px !important;
}

/* Resumo da Matriz */
.matriz-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Produtos Simples */
.produto-simples-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.produto-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assortment-composition {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.assortment-composition h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.assortment-composition ul {
    list-style-type: none;
    padding-left: 0;
}

.assortment-composition li {
    padding: 2px 0;
    color: #495057;
}

/* Cards do Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card.warning {
    border-left-color: #f39c12;
}

.dashboard-card.success {
    border-left-color: #27ae60;
}

.dashboard-card.danger {
    border-left-color: #e74c3c;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.card-icon.primary {
    background: #3498db;
}

.card-icon.warning {
    background: #f39c12;
}

.card-icon.success {
    background: #27ae60;
}

.card-icon.danger {
    background: #e74c3c;
}

.card-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin: 0;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-change.positive {
    color: #27ae60;
}

.card-change.negative {
    color: #e74c3c;
}

/* Tabelas */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    display: flex;
    gap: 5px;
}

/* Loading e Estados */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #95a5a6;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #27ae60;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #f39c12;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #e74c3c;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #3498db;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #7f8c8d;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .matriz-table {
        font-size: 0.8rem;
    }
    
    .matriz-input {
        width: 50px;
        padding: 4px 6px;
    }
    
    .page-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .header {
        padding: 10px 15px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .matriz-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-primary { color: #3498db; }
.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }
.text-danger { color: #e74c3c; }
.text-muted { color: #7f8c8d; }

.bg-primary { background-color: #3498db; }
.bg-success { background-color: #27ae60; }
.bg-warning { background-color: #f39c12; }
.bg-danger { background-color: #e74c3c; }
.bg-light { background-color: #f8f9fa; }

/* Status Items - Dashboard Status Section */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.status-item .status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.status-item .status-icon.draft {
    background: linear-gradient(45deg, #6c757d, #495057);
    border-color: #6c757d;
}

.status-item .status-icon.pending {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border-color: #ffc107;
}

.status-item .status-icon.sent {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border-color: #17a2b8;
}

.status-item .status-icon.approved {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border-color: #28a745;
}

.status-item .status-icon.rejected {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border-color: #dc3545;
}

.status-item .status-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.status-item .status-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.status-item .status-count {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

/* Order Status Icons */
.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status.status-draft {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.status.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status.status-sent {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Action Buttons with Icons Enhancement */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn i {
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Recent Orders Enhancement */
.recent-orders .order-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.recent-orders .order-item:last-child {
    border-bottom: none;
}

/* Header Icons */
.card-header h2 i {
    margin-right: 8px;
    color: #3498db;
}

/* Action Buttons Grid */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination .btn {
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

/* Filters Enhancement */
.filters-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

/* Table Info Cells */
.customer-info,
.date-info,
.value-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-info strong,
.date-info strong,
.value-info strong {
    font-weight: 600;
}

.customer-info small,
.date-info small,
.value-info small {
    font-size: 12px;
    color: #666;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-sm {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
}

.btn-sm i {
    font-size: 12px;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== FORMULÁRIOS ESTILIZADOS ===== */

/* Container principal do formulário */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
}

/* Seções do formulário */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.section-title i {
    color: #3498db;
    font-size: 16px;
}

/* Grid de formulário */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Grupos de campos */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group label.required::after {
    content: '*';
    color: #e74c3c;
    font-weight: bold;
    margin-left: 2px;
}

/* Inputs e elementos de formulário */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #495057;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: #fdfdfd;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #bdc3c7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    opacity: 1;
}

/* Estados especiais */
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* Mensagens de erro */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.error-message::before {
    content: '⚠';
    font-size: 10px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

/* Ações do formulário */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Melhorias nos botões dentro de formulários */
.form-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 14px;
    min-width: 120px;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c5980);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.form-actions .btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Select melhorado */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

/* Animações */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indicadores visuais */
.form-group input:valid {
    border-color: #27ae60;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Estilos para diferentes tipos de input */
input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ===== MODAIS ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px 16px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: #3498db;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.modal-body {
    padding: 24px 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 30px 24px;
    border-top: 1px solid #f0f0f0;
}

.modal-form .form-grid {
    gap: 16px;
    margin-bottom: 16px;
}

.modal-form .form-group {
    gap: 4px;
}

/* ===== ALERTAS E MENSAGENS ===== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fdf2f2;
    border-color: #e74c3c;
    color: #721c24;
}

.alert-success {
    background-color: #f0f9ff;
    border-color: #3498db;
    color: #1e3a8a;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #f39c12;
    color: #92400e;
}

.error-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.error-list li {
    position: relative;
    margin-bottom: 4px;
}

.error-list li::before {
    content: '⚠';
    position: absolute;
    left: -16px;
    color: #e74c3c;
}

/* ===== BOTÕES LINK ===== */

.btn-link {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn-link i {
    margin-right: 4px;
}

/* ===== RESPONSIVIDADE MODAL ===== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BADGES ===== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.badge-success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ===== INFO CELLS ===== */

.industry-info,
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.industry-info strong {
    font-weight: 600;
    color: #2c3e50;
}

.industry-info small a {
    text-decoration: none;
    font-size: 11px;
}

.industry-info small a:hover {
    text-decoration: underline;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.contact-info i {
    color: #3498db;
    width: 12px;
    text-align: center;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== LINKS COM ÍCONES ===== */

.text-primary {
    color: #3498db !important;
}

.text-primary:hover {
    color: #2980b9 !important;
}

/* ===== MELHORIAS NOS BOTÕES SMALL ===== */

.btn-sm.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-sm.btn-info:hover {
    background: #138496;
}

.btn-sm.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
}

.btn-sm.btn-warning:hover {
    background: #e0a800;
}

/* =============================================
   IMPORT PAGES STYLES
   ============================================= */

/* Import Container */
.import-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Import Grid */
.import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Import Cards */
.import-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.import-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.import-card-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.import-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.import-icon.customers {
    background: rgba(255, 255, 255, 0.2);
}

.import-icon.products {
    background: rgba(255, 255, 255, 0.2);
}

.import-card h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.import-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.import-card-content {
    padding: 30px;
}

/* Import Features */
.import-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--success);
    margin-right: 10px;
    width: 16px;
}

/* Import Actions */
.import-actions {
    display: flex;
    gap: 10px;
}

.import-actions .btn {
    flex: 1;
    text-align: center;
}

/* Instructions Card */
.instructions-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.instructions-header {
    background: var(--secondary);
    color: white;
    padding: 20px 30px;
}

.instructions-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.instructions-content {
    padding: 30px;
}

/* Instruction Steps */
.instruction-steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Import Tips */
.import-tips h4 {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.import-tips ul {
    margin: 0;
    padding-left: 20px;
}

.import-tips li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Import Form Container */
.import-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        rgba(var(--primary-500-rgb), 0.02) 50%, 
        var(--bg-light) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-500-rgb), 0.05) 0%, 
        rgba(var(--secondary-500-rgb), 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, 
        rgba(var(--primary-500-rgb), 0.08) 0%, 
        rgba(var(--primary-300-rgb), 0.05) 50%, 
        rgba(var(--primary-500-rgb), 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-500-rgb), 0.15);
}

.file-upload-area:hover::before,
.file-upload-area.drag-over::before {
    opacity: 1;
}

.file-upload-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.file-upload-icon {
    font-size: 4rem;
    color: var(--primary-400);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(var(--primary-500-rgb), 0.2));
}

.file-upload-area:hover .file-upload-icon {
    color: var(--primary-500);
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(var(--primary-500-rgb), 0.3));
}

.file-upload-area h4 {
    margin: 0 0 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.file-upload-area .upload-description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.file-upload-area .upload-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.file-upload-area .upload-hint {
    display: block;
    margin-top: 15px;
    color: var(--primary-500);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(var(--primary-500-rgb), 0.1);
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-hint {
    background: rgba(var(--primary-500-rgb), 0.15);
    transform: scale(1.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(var(--success-500-rgb), 0.08) 0%, 
        rgba(var(--success-300-rgb), 0.05) 100%);
    border-radius: 12px;
    border: 2px solid var(--success-300);
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--success-500-rgb), 0.1);
}

.file-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--success-500-rgb), 0.15);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file-details i {
    font-size: 2rem;
    color: var(--success-500);
    background: rgba(var(--success-500-rgb), 0.1);
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.file-info:hover .file-details i {
    background: rgba(var(--success-500-rgb), 0.2);
    transform: scale(1.05);
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-remove {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--danger-500-rgb), 0.3);
}

.btn-remove:hover {
    background: linear-gradient(135deg, var(--danger-600), var(--danger-700));
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--danger-500-rgb), 0.4);
}

.btn-remove i {
    font-size: 0.9rem;
}

/* CSV Format Info */
.csv-format h4 {
    margin: 20px 0 15px;
    color: var(--text-dark);
    font-size: 1rem;
}

.csv-columns {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.csv-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}

.csv-column.required {
    border-left-color: var(--danger);
    background: var(--danger-light);
}

.column-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.column-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Format Example */
.format-example {
    margin-top: 20px;
}

.format-example h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.format-example pre {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Import Notes */
.import-notes {
    margin-top: 25px;
    padding: 20px;
    background: var(--warning-light);
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.import-notes h4 {
    margin: 0 0 15px;
    color: var(--warning-dark);
    font-size: 1rem;
}

.import-notes ul {
    margin: 0;
    padding-left: 20px;
}

.import-notes li {
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .import-form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .import-grid {
        grid-template-columns: 1fr;
    }
    
    .import-actions {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 0 15px;
    }
}

/* Security Features */
.security-info {
    margin-top: 10px;
    text-align: center;
}

.security-info .text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

.security-info i {
    color: #28a745;
    margin-right: 5px;
}

.security-features {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.security-item i {
    font-size: 1.2rem;
    color: #28a745;
    margin-bottom: 5px;
}

.security-item span {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

/* Login Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Mobile responsive security features */
@media (max-width: 480px) {
    .security-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .security-item {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 5px 0;
    }
    
    .security-item i {
        margin-right: 10px;
        margin-bottom: 0;
    }
}

/* Botão Criar Primeiro Pedido - Empty State */
.btn-create-first-order {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    margin-top: 24px !important;
    min-width: 300px !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-create-first-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-create-first-order:hover::before {
    left: 100%;
}

.btn-create-first-order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4) !important;
}

.btn-create-first-order .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

/* ===== SUBSCRIPTION PAGE STYLES ===== */

/* Card base style - overrides Bootstrap if needed */
.subscription-status .card,
.next-payment .card {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease;
}

.subscription-status .card:hover,
.next-payment .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.subscription-status .card .card-header,
.next-payment .card .card-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 24px 30px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px !important;
}

.subscription-status .card .card-header .card-title,
.next-payment .card .card-header .card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-status .card .card-header .card-title i,
.next-payment .card .card-header .card-title i {
    color: #3498db !important;
    font-size: 1rem !important;
}

.subscription-status .card .card-body,
.next-payment .card .card-body {
    padding: 30px !important;
    min-height: 220px !important;
}

/* Subscription specific styles */
.subscription-dashboard {
    margin-top: 30px;
}

.subscription-status {
    margin-bottom: 30px;
}

.subscription-badge {
    display: flex;
    align-items: center;
}

.subscription-badge .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.subscription-badge .badge-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.subscription-badge .badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.subscription-badge .badge-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(149, 165, 166, 0.3);
}

/* Subscription information rows */
.subscription-status .subscription-info {
    margin-top: 24px !important;
    padding: 0 !important;
}

.subscription-status .subscription-info .info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f1f3f4 !important;
    transition: background-color 0.2s ease;
    min-height: 50px !important;
}

.subscription-status .subscription-info .info-row:last-child {
    border-bottom: none !important;
    padding-bottom: 16px !important;
}

.subscription-status .subscription-info .info-row:first-child {
    padding-top: 20px !important;
}

.subscription-status .subscription-info .info-row:hover {
    background-color: rgba(52, 152, 219, 0.02) !important;
    border-radius: 6px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
}

.subscription-status .subscription-info .info-row .label {
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 1rem !important;
    min-width: 140px !important;
    line-height: 1.5 !important;
}

.subscription-status .subscription-info .info-row .value {
    color: #2c3e50 !important;
    font-size: 1rem !important;
    text-align: right !important;
    flex: 1 !important;
    margin-left: 20px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Next payment card */
.next-payment .card-body {
    text-align: center;
    padding: 30px 24px;
}

.payment-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 15px;
}

.payment-status {
    margin-bottom: 15px;
}

/* Recent payments table */
.recent-payments {
    margin-top: 30px;
}

.recent-payments .table {
    margin-bottom: 0;
}

.recent-payments .table th {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 15px;
}

.recent-payments .table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.recent-payments .table tr:hover {
    background-color: #f8f9fa;
}

/* Page header improvements */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 i {
    color: #3498db;
    font-size: 1.8rem;
}

.page-title p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1rem;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .subscription-dashboard .row {
        margin: 0 -10px;
    }
    
    .subscription-dashboard [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-row .label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .info-row .value {
        text-align: left;
        margin-left: 0;
        font-weight: 500;
    }
    
    .payment-amount {
        font-size: 1.6rem;
    }
}

.btn-create-first-order .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-create-first-order .btn-icon i {
    font-size: 1.2rem;
    color: white;
}

.btn-create-first-order .btn-content {
    flex: 1;
    text-align: left;
    margin-left: 16px;
}

.btn-create-first-order .btn-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.btn-create-first-order .btn-subtitle {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.btn-create-first-order .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-create-first-order:hover .btn-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.btn-create-first-order .btn-arrow i {
    font-size: 1rem;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-create-first-order {
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
    }
    
    .btn-create-first-order .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .btn-create-first-order .btn-content {
        margin-left: 12px;
    }
    
    .btn-create-first-order .btn-title {
        font-size: 1rem;
    }
    
    .btn-create-first-order .btn-subtitle {
        font-size: 0.8rem;
    }
}
