/* Frontend Styles */

.aah-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aah-search-field {
    display: flex;
    flex-direction: column;
}

.aah-search-field input,
.aah-search-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.aah-search-submit {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.aah-search-submit:hover {
    background: #135e96;
}

.aah-search-results {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.aah-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.aah-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.aah-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .aah-search-results {
        grid-template-columns: 1fr !important;
    }
}

.aah-attorney-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.aah-attorney-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aah-attorney-name {
    margin: 0 0 10px;
    font-size: 20px;
}

.aah-attorney-name a {
    color: #333;
    text-decoration: none;
}

.aah-attorney-name a:hover {
    color: #2271b1;
}

.aah-attorney-practice-areas {
    margin-bottom: 10px;
}

.aah-practice-area {
    display: inline-block;
    background: #e7f3ff;
    color: #2271b1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.aah-attorney-states {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.aah-attorney-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.aah-status-active {
    background: #d4edda;
    color: #155724;
}

.aah-status-suspended {
    background: #fff3cd;
    color: #856404;
}

.aah-status-revoked {
    background: #f8d7da;
    color: #721c24;
}

.aah-view-profile {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.aah-view-profile:hover {
    background: #135e96;
    color: #fff;
}

.aah-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .aah-dashboard {
        grid-template-columns: 1fr;
    }
}

.aah-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.aah-dashboard-nav li {
    border-bottom: 1px solid #ddd;
}

.aah-dashboard-nav li:last-child {
    border-bottom: none;
}

.aah-dashboard-nav a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
}

.aah-dashboard-nav a:hover,
.aah-dashboard-nav a.active {
    background: #2271b1;
    color: #fff;
}

.aah-dashboard-content {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.aah-dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.aah-stat-box {
    background: #f0f0f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.aah-stat-box h3 {
    margin: 0 0 5px;
    font-size: 32px;
    color: #2271b1;
}

.aah-stat-box p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.aah-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.aah-table thead th {
    background: #f0f0f1;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.aah-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.aah-table tbody tr:hover {
    background: #f9f9f9;
}

#aah-edit-attorney-form input[type="text"],
#aah-edit-attorney-form input[type="email"],
#aah-edit-attorney-form input[type="url"],
#aah-edit-attorney-form input[type="number"],
#aah-edit-attorney-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#aah-edit-attorney-form button {
    margin-top: 20px;
}

