/* ==========================================
   PROVIDER DASHBOARD STYLES
   ========================================== */

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
}

/* === SIDEBAR === */
.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.provider-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2a3135 0%, #1c2023 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: #1c2023;
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    font-size: 0.875rem;
    color: #5a6369;
    margin-bottom: 0.75rem;
}

.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #5a6369;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-badge.badge-free {
    background: #f1f5f9;
    color: #5a6369;
}

.subscription-badge.badge-featured {
    background: linear-gradient(135deg, #2a3135 0%, #1c2023 100%);
    color: white;
}

.subscription-badge.badge-pro {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.subscription-badge.badge-premium {
    background: linear-gradient(135deg, #f5b400 0%, #f5b400 100%);
    color: white;
}

.subscription-badge.featured {
    background: linear-gradient(135deg, #f5b400 0%, #f5b400 100%);
    color: white;
}

.subscription-badge.pro {
    background: linear-gradient(135deg, #2a3135 0%, #1c2023 100%);
    color: white;
}

/* === SIDEBAR NAVIGATION === */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #5a6369;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: #1c2023;
}

.sidebar-link.active {
    background: #eff6ff;
    color: #1c2023;
    border-right: 3px solid #1c2023;
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-link .badge {
    margin-left: auto;
    background: #2a3135;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === MAIN CONTENT === */
.dashboard-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    color: #1c2023;
    font-weight: 700;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #2a3135 0%, #1c2023 100%); }
.stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #f5b400 0%, #d97706 100%); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }

.stat-content h3 {
    font-size: 2rem;
    color: #1c2023;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #5a6369;
    font-size: 0.875rem;
}

/* === UPGRADE CTA === */
.upgrade-cta-card {
    background: linear-gradient(135deg, #2a3135 0%, #1c2023 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.upgrade-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.upgrade-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.upgrade-cta-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upgrade-cta-card p {
    opacity: 0.9;
}

/* === ACTIVITY LIST === */
.activity-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-section h3 {
    font-size: 1.25rem;
    color: #1c2023;
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    align-items: center;
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6369;
    flex-shrink: 0;
}

.activity-icon.new {
    background: #dbeafe;
    color: #1c2023;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 1rem;
    color: #1c2023;
    margin-bottom: 0.25rem;
}

.activity-content p {
    font-size: 0.875rem;
    color: #5a6369;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* === PROFILE CARD === */
.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-field.full-width {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 0.875rem;
    color: #5a6369;
    font-weight: 500;
}

.profile-field p {
    font-size: 1rem;
    color: #1c2023;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #1c2023;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* === LEADS === */
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lead-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
}

.lead-card.new {
    border-left-color: #1c2023;
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lead-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lead-badge.new {
    background: #dbeafe;
    color: #1c2023;
}

.lead-badge.contacted {
    background: #d1fae5;
    color: #059669;
}

.lead-date {
    font-size: 0.875rem;
    color: #5a6369;
}

.lead-card h3 {
    font-size: 1.125rem;
    color: #1c2023;
    margin-bottom: 1rem;
}

.lead-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lead-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #5a6369;
}

.lead-details i {
    color: #94a3b8;
}

.lead-actions {
    display: flex;
    gap: 1rem;
}

.upgrade-notice {
    background: #fffbeb;
    border: 2px dashed #f5b400;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.upgrade-notice i {
    font-size: 3rem;
    color: #f5b400;
    margin-bottom: 1rem;
}

.upgrade-notice p {
    font-size: 1.125rem;
    color: #92400e;
    margin-bottom: 1rem;
}

/* === SUBSCRIPTION CARD === */
.subscription-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.current-plan {
    margin-bottom: 2rem;
}

.current-plan h3 {
    font-size: 1.5rem;
    color: #1c2023;
    margin-bottom: 0.5rem;
}

.plan-name {
    color: #1c2023;
}

.plan-features h4 {
    font-size: 1.125rem;
    color: #1c2023;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.features-list i.fa-check {
    color: #10b981;
}

.features-list i.fa-times {
    color: #2a3135;
}

/* === BILLING === */
.billing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.billing-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.billing-card h3 {
    font-size: 1.125rem;
    color: #1c2023;
    margin-bottom: 1rem;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* === SETTINGS === */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    font-size: 1.125rem;
    color: #1c2023;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1c2023;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* === BUTTONS === */
.btn-block {
    width: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: #2a3135;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #1c2023;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .profile-grid,
    .lead-details {
        grid-template-columns: 1fr;
    }
    
    .upgrade-cta-card {
        flex-direction: column;
        text-align: center;
    }
    
    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }
}
