/* Dashboard Customers Styles */

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

.add-customer-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.add-customer-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-pink);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-small {
    background: rgba(26, 13, 46, 0.6);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.stat-card-small:hover {
    border-color: var(--primary-pink);
    box-shadow: var(--glow-pink);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-icon-wrapper.pink {
    background: rgba(233, 30, 140, 0.2);
    color: var(--primary-pink);
}

.stat-icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.stat-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.stat-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.customers-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.customer-card {
    background: linear-gradient(135deg, rgba(26, 13, 46, 0.95), rgba(45, 27, 78, 0.85));
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.customer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.15), transparent);
    border-radius: 50%;
}

.customer-card:hover {
    border-color: var(--primary-pink);
    box-shadow: var(--glow-pink);
    transform: translateY(-8px);
}

.customer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.customer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    position: relative;
}

.customer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.customer-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(26, 13, 46, 0.95);
}

.customer-status.active {
    background: #10b981;
}

.customer-status.inactive {
    background: #6b7280;
}

.customer-info-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.customer-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(233, 30, 140, 0.2);
    color: var(--primary-pink);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.customer-type.vip {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.customer-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(233, 30, 140, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.detail-row i {
    color: var(--primary-pink);
    width: 20px;
}

.detail-row span {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 2px solid rgba(233, 30, 140, 0.2);
    border-bottom: 2px solid rgba(233, 30, 140, 0.2);
    margin-bottom: 1.5rem;
}

.customer-stat {
    text-align: center;
}

.customer-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 0.25rem;
}

.customer-stat-label {
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
}

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

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(233, 30, 140, 0.3);
    background: transparent;
    color: var(--gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.action-btn:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: rgba(233, 30, 140, 0.1);
}

.recent-activity {
    background: rgba(45, 27, 78, 0.6);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.activity-title {
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-item {
    padding: 0.625rem;
    background: rgba(233, 30, 140, 0.05);
    border-left: 3px solid var(--primary-pink);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-text {
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.activity-time {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(45, 27, 78, 0.6);
    padding: 0.5rem;
    border-radius: 50px;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.view-btn.active {
    background: var(--primary-pink);
    color: white;
}

.customers-table-view {
    display: none;
    background: rgba(26, 13, 46, 0.6);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.customers-table-view.active {
    display: block;
}

.customers-grid.hidden {
    display: none;
}
