.customers-analysis{padding:24px;background-color:#f8fafc;min-height:100vh}.analysis-header{margin-bottom:32px}.analysis-header h2{font-size:28px;font-weight:700;color:#1f2937;margin-bottom:8px}.analysis-header p{font-size:16px;color:#6b7280}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.error-message{color:#dc2626;font-size:16px;margin-bottom:16px}.retry-button{background-color:#3b82f6;color:#fff;padding:8px 16px;border-radius:6px;border:none;cursor:pointer;font-size:14px;transition:background-color .2s}.retry-button:hover{background-color:#2563eb}.tab-list{display:flex;background-color:#f1f5f9;border-radius:8px;padding:4px;margin-bottom:24px}.tab{display:flex;align-items:center;gap:8px;padding:12px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;flex:1;justify-content:center}.tab-selected{background-color:#fff;color:#3b82f6;box-shadow:0 1px 3px #0000001a}.tab-unselected{color:#64748b}.tab-unselected:hover{color:#475569;background-color:#e2e8f0}.tab-icon{width:18px;height:18px}.tab-panels{background-color:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a}.tab-panel{padding:24px}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:32px}.summary-card{background-color:#f8fafc;padding:20px;border-radius:8px;border:1px solid #e2e8f0}.summary-card h3{font-size:14px;font-weight:500;color:#64748b;margin-bottom:8px}.summary-value{font-size:24px;font-weight:700;color:#1f2937;margin:0}.segments-section{margin-bottom:32px}.segments-section h3{font-size:20px;font-weight:600;color:#1f2937;margin-bottom:16px}.segments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.segment-card{background-color:#f8fafc;padding:20px;border-radius:8px;border:1px solid #e2e8f0}.segment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.segment-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}.segment-count{font-size:14px;color:#64748b;font-weight:500}.segment-description{font-size:14px;color:#64748b;margin-bottom:16px;line-height:1.4}.segment-metrics{display:flex;flex-direction:column;gap:8px}.metric{display:flex;justify-content:space-between;align-items:center}.metric-label{font-size:13px;color:#64748b}.metric-value{font-size:14px;font-weight:600;color:#1f2937}.customers-table-section{margin-bottom:32px}.customers-table-section h3{font-size:20px;font-weight:600;color:#1f2937;margin-bottom:16px}.table-container{overflow-x:auto;border-radius:8px;border:1px solid #e2e8f0}.customers-table{width:100%;border-collapse:collapse;background-color:#fff}.customers-table th{background-color:#f8fafc;padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e2e8f0}.customers-table td{padding:16px;border-bottom:1px solid #f1f5f9;font-size:14px}.customers-table tbody tr:hover{background-color:#f8fafc}.customer-info{display:flex;flex-direction:column;gap:4px}.customer-name{font-weight:600;color:#1f2937}.customer-email{font-size:12px;color:#64748b}.monetary-value{font-weight:600;color:#059669}.rfm-score{font-family:Monaco,Menlo,monospace;font-weight:600;color:#3b82f6}.ranking{display:flex;align-items:center;gap:8px;font-weight:600;color:#1f2937}.trophy-icon{width:16px;height:16px;color:#f59e0b}.retention-breakdown{margin-bottom:32px}.retention-breakdown h3{font-size:20px;font-weight:600;color:#1f2937;margin-bottom:16px}.retention-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.retention-card{background-color:#f8fafc;padding:24px;border-radius:8px;border:1px solid #e2e8f0;text-align:center}.retention-header{display:flex;flex-direction:column;align-items:center;margin-bottom:16px}.retention-icon{width:32px;height:32px;margin-bottom:8px}.retention-icon.new-customers{color:#f59e0b}.retention-icon.returning-customers{color:#10b981}.retention-header h4{font-size:16px;font-weight:600;color:#1f2937;margin:0}.retention-stats{margin-bottom:12px}.retention-count{font-size:32px;font-weight:700;color:#1f2937;line-height:1}.retention-percentage{font-size:14px;font-weight:600;color:#64748b;margin-top:4px}.retention-card p{font-size:14px;color:#64748b;margin:0;line-height:1.4}.retention-insights h3{font-size:20px;font-weight:600;color:#1f2937;margin-bottom:16px}.insights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.insight-card{background-color:#f8fafc;padding:24px;border-radius:8px;border:1px solid #e2e8f0}.insight-card h4{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:12px}.insight-value{font-size:24px;font-weight:700;color:#3b82f6;margin-bottom:8px}.insight-description{font-size:14px;color:#64748b;line-height:1.4;margin:0}@media (max-width: 768px){.customers-analysis{padding:16px}.analysis-header h2{font-size:24px}.tab{padding:10px 12px;font-size:13px}.tab-icon{width:16px;height:16px}.summary-cards,.segments-grid,.retention-grid,.insights-grid{grid-template-columns:1fr}}.dashboard-layout{display:flex;min-height:100vh;background:#f8f9fa}.dashboard-sidebar{width:280px;background:#fff;border-right:1px solid #e9ecef;box-shadow:2px 0 10px #0000001a;position:fixed;height:100vh;overflow-y:auto;z-index:1000}.dashboard-main{flex:1;margin-left:280px;padding:24px;min-height:100vh}.dashboard-header{background:#fff;padding:20px 24px;border-bottom:1px solid #e9ecef;margin-bottom:24px;border-radius:12px;box-shadow:0 2px 10px #0000001a}.dashboard-header h1{margin:0 0 8px;color:#2c3e50;font-size:28px;font-weight:700}.dashboard-header p{margin:0;color:#7f8c8d;font-size:16px}.dashboard-content{background:#fff;border-radius:12px;box-shadow:0 2px 10px #0000001a;overflow:hidden}.navigation-menu{padding:24px 0}.nav-section{margin-bottom:32px}.nav-section h3{padding:0 24px 12px;margin:0;font-size:14px;font-weight:600;color:#6c757d;text-transform:uppercase;letter-spacing:.5px}.nav-item{display:flex;align-items:center;padding:12px 24px;color:#495057;text-decoration:none;transition:all .3s ease;border-left:3px solid transparent;cursor:pointer}.nav-item:hover{background:#f8f9fa;color:#007bff}.nav-item.active{background:#e3f2fd;color:#1976d2;border-left-color:#1976d2;font-weight:600}.nav-item.disabled{opacity:.5;cursor:not-allowed}.nav-item.disabled:hover{background:transparent;color:#495057}.nav-icon{font-size:20px;margin-right:12px;min-width:20px}.nav-content{flex:1}.nav-title{font-size:15px;font-weight:500;margin:0 0 4px}.nav-description{font-size:12px;color:#6c757d;margin:0;line-height:1.3}.nav-badge{background:#28a745;color:#fff;padding:2px 6px;border-radius:10px;font-size:10px;font-weight:600;margin-left:auto}.nav-badge.coming-soon{background:#ffc107;color:#212529}.dashboard-footer{padding:24px;border-top:1px solid #e9ecef;margin-top:auto}.logout-button{width:100%;background:#dc3545;color:#fff;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:background .3s ease}.logout-button:hover{background:#c82333}@media (max-width: 1024px){.dashboard-sidebar{width:260px}.dashboard-main{margin-left:260px;padding:20px}}@media (max-width: 768px){.dashboard-sidebar{transform:translate(-100%);transition:transform .3s ease}.dashboard-sidebar.mobile-open{transform:translate(0)}.dashboard-main{margin-left:0;padding:16px}.dashboard-header{padding:16px 20px;margin-bottom:20px}.dashboard-header h1{font-size:24px}}.loading-overlay{position:absolute;inset:0;background:#ffffffe6;display:flex;align-items:center;justify-content:center;z-index:1000}.loading-spinner{width:40px;height:40px;border:4px solid #e9ecef;border-top:4px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-message{background:#f8d7da;color:#721c24;padding:16px;border-radius:8px;margin:16px 0;border:1px solid #f5c6cb}.success-message{background:#d4edda;color:#155724;padding:16px;border-radius:8px;margin:16px 0;border:1px solid #c3e6cb}.fade-in{animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
