/* Common UI Components */

.card { 
    background: var(--white); 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    padding: 25px; 
    margin-bottom: 20px; 
    border: 1px solid var(--gray-light); 
}

/* Buttons */
.btn { 
    display: inline-block; 
    background: var(--primary); 
    color: var(--white); 
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 30px; 
    font-weight: 700; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); 
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4); 
}

.btn-secondary {
    background: var(--secondary);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Badges */
.badge { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.badge-success { background: #e8f8f0; color: #2ecc71; }
.badge-info { background: #eaf2f8; color: #3498db; }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 420px;
    padding: 25px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 1100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--slate-400);
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dropdown-column a {
    color: var(--dark) !important;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: color 0.2s;
    font-weight: 400 !important;
}

.dropdown-column a:hover {
    color: var(--primary) !important;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay:target {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay:target {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark);
}

.close-modal {
    font-size: 2rem;
    color: var(--slate-400);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--dark);
}

.city-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.city-modal-item {
    padding: 12px 16px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.city-modal-item:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.city-modal-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Expert profile styles */
.expert-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* Utility Classes */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.margin-bottom-lg { margin-bottom: 60px; }
.margin-bottom-md { margin-bottom: 40px; }
.margin-bottom-sm { margin-bottom: 30px; }
.color-primary { color: var(--primary); }
