/* =====================
   Client Styles
   ===================== */

.client-card {
    background: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d3748;
}

.client-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
}

.client-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-badge.inactive {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.client-info {
    margin-bottom: 1rem;
}

.client-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.client-type {
    font-size: 0.875rem;
    color: #9ca3af;
}

.rating {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stars {
    font-size: 1rem;
    color: #fbbf24;
}

.rating-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

.client-details {
    margin-bottom: 1.5rem;
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.detail-icon {
    font-size: 1rem;
}

.client-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #111827;
    border-radius: 6px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e5e7eb;
}

.client-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.client-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: #2d3748;
    color: #e5e7eb;
}

.btn-secondary:hover {
    background-color: #374151;
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-card {
        padding: 1rem;
    }

    .client-actions {
        flex-direction: column;
    }

    .client-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .client-stats {
        gap: 1rem;
    }

    .detail-row {
        font-size: 0.8rem;
    }
}

/* Clients table specific layout to keep columns aligned and readable */
.clients-table {
    table-layout: fixed;
    width: 100%;
}
.clients-table th,
.clients-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clients-table th:nth-child(1),
.clients-table td:nth-child(1) {
    width: 110px;
}
.clients-table th:nth-child(2),
.clients-table td:nth-child(2) {
    width: 200px;
}
.clients-table th:nth-child(3),
.clients-table td:nth-child(3) {
    width: 120px;
}
.clients-table th:nth-child(4),
.clients-table td:nth-child(4) {
    width: 220px;
}
.clients-table th:nth-child(5),
.clients-table td:nth-child(5) {
    width: 140px;
}
.clients-table th:nth-child(6),
.clients-table td:nth-child(6) {
    width: 150px;
}
.clients-table th:nth-child(7),
.clients-table td:nth-child(7) {
    width: 90px;
}
.clients-table th:nth-child(8),
.clients-table td:nth-child(8) {
    width: 120px;
}
.clients-table th:nth-child(9),
.clients-table td:nth-child(9) {
    width: 120px;
}
.clients-table th:nth-child(10),
.clients-table td:nth-child(10) {
    width: 100px;
}
.clients-table th:nth-child(11),
.clients-table td:nth-child(11) {
    width: 150px;
}

@media (max-width: 900px) {
    .clients-table th,
    .clients-table td {
        white-space: normal;
    }
}
