﻿/* Shared styles for ContactsView component */
.contacts-view-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contacts-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
}

.contacts-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: white;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .contact-card:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.contact-role {
    background: var(--bs-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.alpha-container {
    padding: 1rem;
}

.alpha-section {
    margin-bottom: 2rem;
}

.alpha-letter {
    font-weight: bold;
    color: var(--bs-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-primary);
    margin-bottom: 1rem;
}

.alpha-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--bs-gray-100);
    cursor: pointer;
}

    .alpha-contact-item:hover {
        background: var(--bs-gray-50);
    }

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bs-gray-100);
    padding: 0.25rem;
    border-radius: 0.375rem;
}

.view-toggle-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

    .view-toggle-btn.active {
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .view-toggle-btn:hover:not(.active) {
        background: var(--bs-gray-200);
    }
