@import url("frontend/src/styles/base.css");
@import url("frontend/src/styles/layout.css");

@import url("frontend/src/styles/sidebar.css");
@import url("frontend/src/styles/right-sidebar.css");

@import url("frontend/src/styles/calendar.css");
@import url("frontend/src/styles/timeline.css");
@import url("frontend/src/styles/library.css");
@import url("frontend/src/styles/storage.css");
@import url("frontend/src/styles/floating-hub.css");
@import url("frontend/src/styles/settings.css");

/* 신규 분리 대상 추가 */
@import url("frontend/src/styles/memo.css");
@import url("frontend/src/styles/tags.css");
@import url("frontend/src/styles/event-window.css");
@import url("frontend/src/styles/modals.css");

/* Sidebar Footer & Storage Styles (delegated to frontend/src/styles/sidebar.css) */




/* Profile Dropdown Sidebar Mode Override */
.profile-dropdown.sidebar-mode {
    bottom: auto !important;
    right: auto !important;
    animation: slideInDown 0.2s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.profile-dropdown {
    position: fixed;
    top: 44px;
    right: 20px;
    width: 260px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none !important;
    z-index: 20000;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.profile-dropdown.hidden {
    display: none;
}

/* Limo Dropdown Header */
.dropdown-header-limo {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
}

.dropdown-header-top {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dropdown-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-hover);
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dropdown-header-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.dropdown-username {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-plan {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 1px;
}

.dropdown-header-actions {
    display: flex;
    padding: var(--spacing-sm);
    box-sizing: border-box;
    width: 100%;
}

.dropdown-action-btn {
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-action-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-btn-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Notion Dropdown Email Section */
.dropdown-email-list {
    padding: var(--spacing-sm);
}

.email-item-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    overflow: hidden;
}

.email-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-hover);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    min-height: 32px;
    margin: 0;
    border-radius: var(--radius-sm);
    background-color: transparent;
    transition: background-color 0.15s;
    cursor: pointer;
}

.email-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.email-more-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 2px;
    transition: background-color 0.15s;
}

.email-more-container:hover {
    background-color: var(--bg-hover);
}

.email-more-container:hover .email-more-btn {
    color: var(--text-primary);
}

.email-submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: none !important;
    z-index: 20001;
    width: 110px;
    padding: var(--spacing-xs) 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.email-submenu.hidden {
    display: none;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 var(--spacing-sm);
    min-height: 32px;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
    color: var(--danger-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.submenu-item:hover {
    background-color: var(--bg-hover);
}

.submenu-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.email-more-btn {
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.15s;
}

.more-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Notion Divider */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 2px var(--spacing-sm);
    width: auto;
}

/* Limo Dropdown Footer */
.dropdown-footer-limo {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item-limo {
    padding: 0 var(--spacing-sm);
    min-height: 32px;
    margin: 0;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}

.dropdown-item-limo:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item,
.dropdown_item {
    position: relative;
    padding: 0 var(--spacing-md, 12px);
    min-height: 32px;
    color: var(--text-secondary, #e8eaed);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    margin: 4px 4px 0 4px;
    border-radius: var(--radius-sm, 4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-base);
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

.type-dropdown-checkmark {
    display: none !important;
}