/* Profile Dropdown Styles */
.profile-dropdown-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-phone {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dropdown-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #666;
}

.dropdown-item span {
    flex: 1;
}

.favorites-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.logout-btn {
    color: #e53e3e;
}

.logout-btn svg {
    color: #e53e3e;
}

.logout-btn:hover {
    background: #fee;
}

/* Favorites Modal */
.favorites-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.favorites-modal.active {
    display: flex;
}

.favorites-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.favorites-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.close-modal:hover {
    background: #f5f5f5;
}

.favorites-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.favorites-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.favorites-stats span {
    color: #666;
}

.favorites-stats strong {
    color: var(--primary-color);
    font-size: 18px;
}

.favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.favorite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.favorite-row:hover {
    background: #f0f0f0;
}

.favorite-plate-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    flex: 1;
}

.favorite-plate-price {
    font-size: 16px;
    color: #8B0000;
    font-weight: 500;
    margin: 0 20px;
}

.remove-favorite-btn {
    padding: 6px 14px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remove-favorite-btn:hover {
    background: #c53030;
}

.no-favorites {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-favorites p {
    margin-top: 20px;
    font-size: 16px;
}

/* Theme toggle in dropdown */
.theme-toggle {
    justify-content: space-between !important;
    align-items: center;
}

.theme-toggle .theme-icon {
    margin-right: 12px;
}

.theme-switch {
    position: relative;
    width: 50px;
    height: 24px;
    margin-left: auto;
}

.theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 12px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.theme-checkbox:checked + .theme-slider {
    background-color: #8B0000;
}

.theme-checkbox:checked + .theme-slider:before {
    transform: translateX(26px);
}

.theme-slider:hover {
    background-color: #bbb;
}

.theme-checkbox:checked + .theme-slider:hover {
    background-color: #a52a2a;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        right: -10px;
        min-width: 220px;
    }
    
    .favorites-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}
