/**
 * Dropdown Styles
 * Styles for account and bookmark dropdowns
 */

/* Base dropdown container - only for JavaScript-created dropdowns */
.dropdown-container.account-dropdown,
.dropdown-container.bookmark-dropdown {
    position: fixed;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    font-family: 'Lato', sans-serif;
}

/* Account dropdown specific styles */
.dropdown-container.account-dropdown {
    top: 60px;
    right: 10px;
    padding: 1.2rem 1.5rem;
    min-width: 100px;
    width: 180px;
    max-width: 220px;
    max-height: 300px;
    overflow-y: auto;
}

/* Bookmark dropdown specific styles */
.dropdown-container.bookmark-dropdown {
    top: 60px;
    right: 100px;
    padding: 1rem;
    min-width: 150px;
    max-height: 300px;
    overflow-y: auto;
}

/* Dropdown headers - scoped to our dropdowns only */
.dropdown-container .dropdown-header {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.dropdown-container .dropdown-subheader {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Form inputs - scoped to our dropdowns only */
.dropdown-container .dropdown-input {
    width: 100%;
    margin-bottom: 0.7rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
}

/* Buttons - scoped to our dropdowns only */
.dropdown-container .dropdown-btn {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

.dropdown-container .dropdown-btn-primary {
    background: #4a69bd;
    color: #fff;
}

.dropdown-container .dropdown-btn-primary:hover {
    background: #3c5aa6;
}

.dropdown-container .dropdown-btn-secondary {
    background: #38ada9;
    color: #fff;
}

.dropdown-container .dropdown-btn-secondary:hover {
    background: #2d9a96;
}

.dropdown-container .dropdown-btn-danger {
    background: #dc3545;
    color: #fff;
}

.dropdown-container .dropdown-btn-danger:hover {
    background: #c82333;
}

.dropdown-container .dropdown-btn-success {
    background: #50e73c;
    color: #fff;
}

.dropdown-container .dropdown-btn-success:hover {
    background: #42c02f;
}

.dropdown-container .dropdown-btn + .dropdown-btn {
    margin-top: 0.5rem;
}

/* Links and interactive elements - scoped to our dropdowns only */
.dropdown-container .dropdown-link {
    color: #4a69bd;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.92em;
}

.dropdown-container .dropdown-link:hover {
    color: #3c5aa6;
}

/* Error and message styles - scoped to our dropdowns only */
.dropdown-container .dropdown-error {
    color: red;
    margin-top: 0.7rem;
    min-height: 1.2em;
    font-size: 0.9rem;
}

.dropdown-container .dropdown-success {
    color: green;
    margin-top: 0.7rem;
    min-height: 1.2em;
    font-size: 0.9rem;
}

.dropdown-container .dropdown-message {
    color: #666;
    margin-top: 0.7rem;
    min-height: 1.2em;
    font-size: 0.9rem;
}

/* Bookmark specific styles - scoped to our dropdowns only */
.dropdown-container .bookmark-list {
    padding-left: 1.2em;
    margin: 0.5rem 0;
}

.dropdown-container .bookmark-item {
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 14px;
}

.dropdown-container .bookmark-item:hover {
    background-color: #e0e0e0;
}

.dropdown-container .bookmark-item.current {
    background-color: #e8f4f8;
}

.dropdown-container .bookmark-item.current:hover {
    background-color: #e0e0e0;
}

.dropdown-container .bookmark-link {
    color: #4a69bd;
    word-break: break-all;
    flex: 1;
    margin-right: 8px;
    text-decoration: none;
}

.dropdown-container .bookmark-link:hover {
    color: #3c5aa6;
}

.dropdown-container .bookmark-action-btn {
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.8rem;
    cursor: pointer;
    min-width: 20px;
    margin-left: 2px;
}

.dropdown-container .bookmark-remove-btn {
    background: #e74c3c;
    color: #fff;
}

.dropdown-container .bookmark-copy-btn {
    background: #50e73c;
    color: #fff;
}

/* User info display - scoped to our dropdowns only */
.dropdown-container .user-email {
    color: #4a69bd;
}

/* Separators - scoped to our dropdowns only */
.dropdown-container .dropdown-separator {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* Text alignment utilities - scoped to our dropdowns only */
.dropdown-container .text-left {
    text-align: left;
}

.dropdown-container .text-center {
    text-align: center;
}

/* Spacing utilities - scoped to our dropdowns only */
.dropdown-container .mb-1 { margin-bottom: 0.5rem; }
.dropdown-container .mb-2 { margin-bottom: 1rem; }
.dropdown-container .mt-1 { margin-top: 0.5rem; }
.dropdown-container .mt-2 { margin-top: 1rem; }