/* ===== Pages Styles ===== */

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ===== Customers Page ===== */
.customer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Filters */
.customers-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-box .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Customers Table */
.customers-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

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

.customers-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.customers-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.customer-row {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.customer-row:hover {
    background: var(--gray-50);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.customer-avatar.vip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--gray-900);
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.customer-company {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.contact-info .email {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.new {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge.vip {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.value {
    font-weight: 600;
    color: var(--gray-900);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Content Placeholder (for empty pages) */
.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-500);
}

.content-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.content-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.content-placeholder p {
    font-size: 1rem;
    margin: 0;
}

/* ===== Leads Page ===== */
.lead-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pipeline-stage {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.stage-header {
    padding: 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stage-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.stage-count {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.stage-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.lead-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lead-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.lead-card.won {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.02);
}

.lead-card.lost {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.02);
    opacity: 0.7;
}

.lead-info {
    margin-bottom: 0.75rem;
}

.lead-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.lead-source {
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
}

.lead-source.instagram {
    background: #e1306c;
    color: white;
}

.lead-source.facebook {
    background: #1877f2;
    color: white;
}

.lead-source.google {
    background: #ea4335;
    color: white;
}

.lead-source.website {
    background: #6366f1;
    color: white;
}

.lead-source.referral {
    background: #10b981;
    color: white;
}

.lead-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.lead-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
    .lead-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .customer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customers-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .customer-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customers-table-container {
        overflow-x: auto;
    }
    
    .customers-table {
        min-width: 600px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .lead-pipeline {
        grid-template-columns: 1fr;
    }
} 