* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: -webkit-linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: -moz-linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: -o-linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    display: -webkit-flex;
    gap: 20px;
    min-height: calc(100vh - 40px);
    flex-wrap: wrap;
}

.admin-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -o-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    flex-shrink: 0;
    height: calc(100vh - 40px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

/* 兼容旧浏览器和Tor浏览器的回退样式 */
@supports not (backdrop-filter: blur(20px)) {
    .admin-sidebar,
    .header,
    .card,
    .search-form {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* 为Tor浏览器添加特定样式 */
@-moz-document url-prefix() {
    /* 修复Firefox/Tor浏览器中的backdrop-filter问题 */
    .admin-sidebar,
    .header,
    .card,
    .search-form {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        -moz-backdrop-filter: none;
        -o-backdrop-filter: none;
    }
    
    /* 修复Firefox/Tor浏览器中的grid布局问题 */
    .grid-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .bookmarks-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .bookmark-item {
        flex: 1 1 calc(33.333% - 16px);
        min-width: 120px;
    }
    
    /* 修复Firefox/Tor浏览器中的flex布局问题 */
    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* 修复Firefox/Tor浏览器中的position: sticky问题 */
    .admin-sidebar {
        position: static;
        height: auto;
        margin-bottom: 20px;
    }
    
    /* 修复Firefox/Tor浏览器中的transition问题 */
    * {
        transition: none !important;
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
    }
    
    /* 简化Firefox/Tor浏览器中的阴影效果 */
    .btn-search:hover,
    .btn-add:hover,
    .bookmark-item:hover,
    .note-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* 修复Firefox/Tor浏览器中的输入框样式 */
    .search-input,
    .form-control,
    .form-group input,
    .form-group textarea {
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 0;
    flex: 1;
}

.header {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -o-backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-bottom: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    justify-content: space-between;
}

.header-left {
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    min-width: 200px;
    width: 100%;
}

.header-right {
    flex-shrink: 0;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    gap: 10px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.username {
    color: #555;
    font-size: 16px;
}

.btn-logout, .btn-login {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover, .btn-login:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-content {
    width: 100%;
}



.search-form {
    display: flex;
    display: -webkit-flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -o-backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    min-width: 150px;
}

.search-input:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-search {
    padding: 12px 24px;
    background: linear-gradient(135deg, #666 0%, #999 100%);
    background: -webkit-linear-gradient(135deg, #666 0%, #999 100%);
    background: -moz-linear-gradient(135deg, #666 0%, #999 100%);
    background: -o-linear-gradient(135deg, #666 0%, #999 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-search:hover {
    transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
    -webkit-box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
    -o-box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

.grid-container {
    display: grid;
    display: -ms-grid;
    grid-template-columns: 1fr 1fr;
    -ms-grid-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    min-width: 0;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    -o-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    min-width: 0;
    word-wrap: break-word;
}

.section-header {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    align-items: center;
    -webkit-align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

.btn-add {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-add:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bookmarks-grid {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-columns: 1fr 1fr 1fr;
    gap: 16px;
    height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.bookmarks-grid::-webkit-scrollbar {
    width: 6px;
}

.bookmarks-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.bookmarks-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.bookmarks-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 兼容IE11的滚动条样式 */
.bookmarks-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) rgba(255, 255, 255, 0.2);
}

.bookmark-item {
    position: relative;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bookmark-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bookmark-item:hover .bookmark-actions {
    opacity: 1;
}

.bookmark-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.bookmark-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
}

.bookmark-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #666 0%, #999 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.bookmark-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bookmark-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-edit, .btn-delete {
    padding: 6px 10px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #666;
    color: white;
}

.btn-edit:hover {
    background: #555;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

#publicNotesContainer {
    height: 200px;
}

.notes-container::-webkit-scrollbar {
    width: 6px;
}

.notes-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.notes-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.notes-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.note-item {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.note-item:hover .note-actions {
    opacity: 1;
}

.note-sender {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.note-content {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-time {
    color: #888;
    font-size: 12px;
}

.note-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.empty-hint {
    color: rgba(100, 100, 100, 0.8);
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    font-weight: 500;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
}

.login-card h1 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.login-card > p {
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, #666 0%, #999 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 102, 102, 0.4);
}

.hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 24px;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 24px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content form .btn-primary {
    margin-top: 10px;
    align-self: flex-start;
}

.modal-content label {
    color: #333;
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .admin-sidebar {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 220px;
    }
    
    .header-search {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 16px;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .header h1 {
        font-size: 20px;
        text-align: center;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-search {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        -ms-grid-columns: 1fr 1fr;
        height: 250px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .login-card h1 {
        font-size: 26px;
    }
    
    .btn-logout,
    .btn-login {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .header-right {
        gap: 8px;
    }
}

/* 拖动排序样式 */
.bookmark-item-ghost {
    opacity: 0.5;
    background: rgba(102, 102, 102, 0.2);
    border: 2px dashed #666;
}

.bookmark-item {
    cursor: grab;
}

.bookmark-item:active {
    cursor: grabbing;
}

/* 管理员侧边栏样式 */
.admin-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    flex-shrink: 0;
}

.admin-sidebar h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
}

.users-list::-webkit-scrollbar {
    width: 6px;
}

.users-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.users-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.user-role {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.user-role.admin {
    background: rgba(102, 102, 102, 0.2);
    color: #666;
}

.user-role.user {
    background: rgba(102, 102, 102, 0.1);
    color: #888;
}

.user-actions {
    margin-top: 16px;
}

.admin-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-direction: column;
}

.admin-actions .form-control {
    width: 100%;
    margin-bottom: 16px;
}

/* 下拉选择框样式 */
.dropdown-select {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.dropdown-select-toggle {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-select-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 100;
    margin-top: 8px;
}

.dropdown-select-item {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-select-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dropdown-select-item span {
    font-size: 14px;
    color: #333;
}

/* 下拉复选框样式 */
.dropdown-checkbox {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.dropdown-checkbox-toggle {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-checkbox-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-checkbox-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 100;
    margin-top: 8px;
}

.dropdown-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropdown-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dropdown-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dropdown-checkbox-item label {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.form-control {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-actions .btn-delete {
    flex: 1;
    text-align: center;
}
