/* assets/css/sa-dashboard.css */

.sa-dashboard-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.sa-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sa-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sa-avatar {
    border-radius: 50%;
}

.sa-dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.sa-tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.sa-tab-btn.active {
    color: #1565c0;
    border-bottom-color: #1565c0;
}

.sa-tab-content {
    display: none;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sa-tab-content.active {
    display: block;
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.sa-table th, .sa-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.sa-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #475569;
}

.sa-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.sa-alert--success { background: #e8f5e9; border-left: 5px solid #2e7d32; }
.sa-alert--warning { background: #fff3e0; border-left: 5px solid #ed6c02; }
.sa-alert--danger { background: #ffebee; border-left: 5px solid #d32f2f; }
.sa-alert--info { background: #e3f2fd; border-left: 5px solid #1565c0; }
.sa-alert--purple { background: #f3e5f5; border-left: 5px solid #7b1fa2; }

/* Grid layouts */
.sa-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .sa-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sa-grid--3 {
        grid-template-columns: 1fr;
    }
    
    .sa-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sa-dashboard-tabs {
        flex-wrap: wrap;
    }
}

/* Empty state */
.sa-empty-state {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-style: italic;
}

/* Dashboard contact cards */
.sa-contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sa-contact-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sa-contact-card__thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.sa-contact-card__thumb--default {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sa-contact-card__info {
    flex: 1;
}

.sa-contact-card__info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.sa-contact-card__phone {
    padding: 1rem;
    background: #f8fafc;
}

.sa-contact-card__phone .sa-phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sa-success);
}

.sa-contact-card__meta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.sa-contact-card__actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.sa-contact-card__actions .sa-btn {
    flex: 1;
}

.sa-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.sa-phone-number {
    color: var(--sa-success);
    font-weight: 700;
    text-decoration: none;
}

.sa-phone-number:hover {
    text-decoration: underline;
}

.sa-meta-date {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.sa-meta-ref {
    color: #94a3b8;
    font-size: 0.8rem;
}

.sa-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive table */
.sa-table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .sa-table-responsive {
        border-radius: 8px;
    }
}
