.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.icon-btn.active {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.icon-btn.success {
    color: var(--success-color);
}

.icon-btn.success:hover {
    background: var(--success-color);
    color: white;
}

.icon-btn.danger {
    color: var(--accent-color);
}

.icon-btn.danger:hover {
    background: var(--accent-color);
    color: white;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-btn.full-width {
    margin-top: 20px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.primary-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 0.6rem 1.2rem;
    background: var(--background-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.secondary-btn:hover::before {
    left: 100%;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.secondary-btn:active {
    transform: translateY(0);
}

.admin-announcement-actions .secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
    text-decoration: none;
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.memory-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.4s both;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.memory-badge i {
    animation: heartbeat 1.5s ease infinite;
}

.view-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ai-search-toggle {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.4rem 0.8rem;
    background: var(--background-alt);
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 2;
}

.ai-search-toggle:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.ai-search-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.toggle-label i {
    font-size: 0.9rem;
    color: #667eea;
}

.ai-search-toggle:has(input:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.ai-search-toggle:has(input:checked) .toggle-label {
    color: white;
}

.ai-search-toggle:has(input:checked) .toggle-label i {
    color: white;
    animation: magic-sparkle 1.5s ease infinite;
}

@media (max-width: 600px) {
    .ai-search-toggle {
        padding: 0.4rem;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }

    .toggle-text {
        display: none;
    }

    .toggle-label {
        gap: 0;
    }
}

.ai-search-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.similarity-score {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--background-alt);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.download-button {
    padding: 0.5rem 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.download-button:hover {
    background: #229954;
    transform: translateY(-1px);
}

.preview-button {
    padding: 0.5rem 1rem;
    background: var(--info-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.preview-button:hover {
    background: #2E86C1;
    transform: translateY(-1px);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

@media (max-width: 480px) {
    .primary-btn span {
        display: none;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-large);
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-body {
    flex-grow: 1;
    padding-top: 1rem;
    position: relative;
}

#preview-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.preview-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    z-index: 10;
}

.support-us-section {
    background: linear-gradient(135deg,
            rgba(52, 152, 219, 0.1) 0%,
            rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    width: 70%;
}

.support-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 15px 15px 0 0;
}

.support-us-section h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.support-us-section h3::before {
    content: '💖';
    font-size: 1.2rem;
    animation: heartbeat 1.5s ease infinite;
}

.support-us-section p {
    color: #BDC3C7;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.support-us-section a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    background: rgba(52, 152, 219, 0.1);
}

.support-us-section a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .support-us-section {
    background: linear-gradient(135deg,
            rgba(52, 152, 219, 0.15) 0%,
            rgba(155, 89, 182, 0.15) 100%);
    border-color: rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .support-us-section p {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .support-us-section a {
    color: var(--primary-light);
    background: rgba(52, 152, 219, 0.2);
}

[data-theme="dark"] .support-us-section a:hover {
    background: var(--primary-color);
    color: white;
}

.size-progress-container {
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    cursor: help;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    font-size: 0.8em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.recent-uploads-section {
    margin-top: 1.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
}

.recent-uploads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recent-uploads-header .section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.recent-uploads-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 5px;
}

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

.recent-uploads-list::-webkit-scrollbar-track {
    background: transparent;
}

.recent-uploads-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.recent-uploads-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

.recent-upload-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 0.85rem 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.recent-upload-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.recent-upload-info {
    flex: 1;
    min-width: 0;
}

.recent-upload-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-upload-name i {
    color: var(--primary-color);
}

.recent-upload-name span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-upload-meta {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.recent-upload-path {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recent-upload-path:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.recent-upload-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.recent-action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: var(--background-alt);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.recent-action-btn.downloading {
    width: auto;
    padding: 0 12px;
    gap: 8px;
}

.recent-action-btn.downloading .download-progress-text {
    white-space: nowrap;
    font-size: 0.85rem;
}

.recent-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.recent-uploads-section .empty-state-small,
.recent-uploads-section .loading-item {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guestbook-section {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.guestbook-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.guestbook-header-section {
    margin-bottom: 1rem;
}

.guestbook-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.guestbook-header-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.guestbook-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.guestbook-filter-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.guestbook-filter-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.guestbook-filter-btn:hover {
    color: var(--secondary-color);
}

.guestbook-filter-btn.active {
    background: var(--secondary-color);
    color: white;
    font-weight: 500;
}

.guestbook-sort-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.guestbook-sort-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.guestbook-sort-btn:hover {
    color: var(--primary-color);
}

.guestbook-sort-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.guestbook-status-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.guestbook-status-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.guestbook-status-btn:hover {
    color: var(--accent-color);
}

.guestbook-status-btn.active {
    background: var(--accent-color);
    color: white;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .guestbook-header-top {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .guestbook-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guestbook-header-section .section-title {
        justify-content: center;
    }
}

.guestbook-header-section .section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.guestbook-form-container {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.login-prompt {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--background);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

#guestbook-form .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#guestbook-content {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

#guestbook-content:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guestbook-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.2rem;
    transition: all 0.2s ease;
}

.guestbook-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-light);
}

.guestbook-item.is-pinned {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--background), var(--background)) padding-box,
        linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(77, 163, 255, 0.5)) border-box;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
}

.guestbook-item.is-pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007BFF 0%, #4DA3FF 100%);
    border-radius: 16px 0 0 16px;
}

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

.guestbook-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-avatar-placeholder {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.guestbook-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: flex-start;
}

.guestbook-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nickname {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.guestbook-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--background-alt);
    padding: 1rem;
    border-radius: 0 12px 12px 12px;
    margin-top: 0.2rem;
}

.guestbook-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.guestbook-admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.guestbook-author-controls {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.guestbook-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.like-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.like-btn.active {
    color: var(--accent-color);
}

.like-btn.active i {
    animation: heartbeat 0.3s ease-in-out;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.admin-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.admin-action-btn:hover {
    color: var(--text-secondary);
}

.admin-action-btn.delete:hover {
    color: var(--accent-color);
}

.item-hidden {
    opacity: 0.6;
    background: var(--background-alt);
    border-style: dashed;
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 50%, #FF6B6B 100%);
    background-size: 200% 100%;
    color: white;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pinShine 3s ease-in-out infinite;
}

.pinned-badge i {
    animation: pinRotate 2s ease-in-out infinite;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-badge.resolved {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-badge.resolved i {
    animation: checkBounce 2s ease-in-out infinite;
}

.status-badge.unresolved {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(108, 117, 125, 0.25) 100%);
    color: var(--text-secondary);
    border: 1.5px solid rgba(108, 117, 125, 0.3);
}

.status-badge.rejected {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.status-badge.rejected i {
    animation: pulse 1.5s ease-in-out infinite;
}

.reject-reason {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.12) 100%);
    border-left: 3px solid #dc3545;
    border-radius: 0 8px 8px 0;
    color: #dc3545;
    font-size: 0.85rem;
    line-height: 1.5;
}

.reject-reason i {
    margin-right: 0.5rem;
}

.reject-modal {
    max-width: 500px;
}

.reject-modal h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
}

.reject-modal h3 i {
    font-size: 1.2rem;
}

.reject-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.reject-preset-btn {
    padding: 0.5rem 0.85rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reject-preset-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.reject-preset-btn.active {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.15) 100%);
    border-color: #dc3545;
    color: #dc3545;
}

.reject-modal .prompt-input-container {
    position: relative;
}

.reject-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.reject-modal textarea:focus {
    outline: none;
    border-color: #dc3545;
}

.reject-modal .char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(118, 75, 162, 0.3);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.admin-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(118, 75, 162, 0.4);
}


@media (max-width: 1200px) {
    .recent-upload-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-upload-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(77, 163, 255, 0.2) 100%), rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-box {
    background: var(--background);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 123, 255, 0.3);
    position: relative;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--background), var(--background)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(77, 163, 255, 0.2));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 80vh;
    scrollbar-width: none;
}

.auth-box::-webkit-scrollbar {
    display: none;
}

.auth-title {
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007BFF 0%, #4DA3FF 50%, #007BFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.8px;
    animation: shimmer 3s linear infinite;
    position: relative;
    z-index: 1;
}

.auth-form .form-group {
    margin-bottom: 1.8rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.3rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-control:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08);
}

.form-control:focus {
    background: var(--background);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12), 0 4px 16px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.input-group {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
}

.email-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--background);
}

.email-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12), 0 4px 16px rgba(0, 123, 255, 0.15);
}

.email-input-group .form-control {
    flex: 1;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding-right: 0.5rem;
    min-width: 80px;
}

.email-input-group .form-control:focus {
    box-shadow: none;
    transform: none;
}

.email-suffix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    background: var(--background);
}

.send-code-btn {
    padding: 0 1.4rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(77, 163, 255, 0.15) 100%);
    color: var(--primary-color);
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.send-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.send-code-btn:hover:not(:disabled)::before {
    left: 100%;
}

.send-code-btn:hover:not(:disabled) {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    border-color: var(--primary-color);
}

.send-code-btn:active:not(:disabled) {
    transform: translateY(0);
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background-alt);
    color: var(--text-light);
}

.close-modal-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    padding: 0;
    overflow: hidden;
}

.close-modal-btn:hover {
    background: var(--accent-gradient);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    border-color: var(--accent-color);
}

.close-modal-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.close-modal-btn i {
    transition: none;
    line-height: 1;
    display: block;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-top: 1.8rem;
    border-top: 2px solid transparent;
    background-image:
        linear-gradient(var(--background), var(--background)),
        linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3), transparent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-light);
}

.auth-footer a:hover::after {
    width: 100%;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(77, 163, 255, 0.12) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(77, 163, 255, 0.3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .user-info {
    background-image:
        linear-gradient(var(--dark-bg-alt), var(--dark-bg-alt)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.4), rgba(77, 163, 255, 0.4));
}

.user-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 6s linear infinite;
    pointer-events: none;
}

.user-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(0, 123, 255, 0.5), rgba(77, 163, 255, 0.5));
}

[data-theme="dark"] .user-info:hover {
    background-image:
        linear-gradient(var(--dark-bg-alt), var(--dark-bg-alt)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(77, 163, 255, 0.6));
}

.user-info i {
    font-size: 1.1rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.user-info .quota {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.user-info .quota:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: scale(1.05);
}


.announcement-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.announcement-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .announcement-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

[data-theme="light"] .announcement-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

[data-theme="light"] .announcement-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.announcement-header,
.announcement-content {
    position: relative;
    z-index: 1;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.announcement-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-header h3 i {
    color: var(--primary-color);
}

.announcement-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.announcement-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.announcement-text::-webkit-scrollbar {
    width: 4px;
}

.announcement-text::-webkit-scrollbar-track {
    background: transparent;
}

.announcement-text::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 2px;
}

.announcement-text::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

.announcement-text h1,
.announcement-text h2,
.announcement-text h3,
.announcement-text h4,
.announcement-text h5,
.announcement-text h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

.announcement-text p {
    margin-bottom: 1em;
}

.announcement-text ul,
.announcement-text ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.announcement-text li {
    margin-bottom: 0.25em;
}

.announcement-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.announcement-text blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.announcement-text code {
    background: var(--background-alt);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.announcement-text pre {
    background: var(--background-alt);
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.announcement-text pre code {
    background: none;
    padding: 0;
}

.announcement-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.announcement-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.admin-announcement-item {
    background: var(--background-alt);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-announcement-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.admin-announcement-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.status-published {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-draft {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.admin-announcement-actions {
    display: flex;
    gap: 0.5rem;
}

.announcement-form-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.form-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-alt);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 0.6rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--primary-color);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.label-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.form-actions button {
    min-width: 100px;
    justify-content: center;
}



.tab-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--background-alt);
    padding: 0.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--background-dark);
}

.user-info-top {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.nickname-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 1200px) {
    .guestbook-item {
        flex-direction: column;
        gap: 0.8rem;
    }

    .user-avatar-placeholder {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .guestbook-header-section .section-title {
        font-size: 1.2rem;
    }
}

.checkbox-group.warning {
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .checkbox-group.warning {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.35);
}

.checkbox-group.warning label {
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.warning-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.checkbox-group.warning input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background 0.25s ease;
}

.checkbox-group.warning input[type='checkbox']::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.checkbox-group.warning input[type='checkbox']:checked {
    background: #dc2626;
}

.checkbox-group.warning input[type='checkbox']:checked::before {
    transform: translateX(20px);
}

.checkbox-group.warning input[type='checkbox']:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.warning-check-row span {
    font-weight: 500;
    color: var(--text-primary);
}

.warning-title {
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.warning-text {
    display: block;
    margin-top: 6px;
    font-size: 0.82em;
    color: #b91c1c;
    line-height: 1.4;
}

[data-theme="dark"] .warning-text {
    color: #fca5a5;
}

.warning-highlight {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #dc2626;
    text-underline-offset: 2px;
}

.pagination-jump-input {
    width: 60px;
    padding: 0.5rem 0.3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    margin: 0 0.5rem;
    background: var(--background-alt);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pagination-jump-input::-webkit-outer-spin-button,
.pagination-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination-jump-input:hover {
    border-color: var(--primary-color);
    background: var(--background);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.pagination-jump-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.icon-btn.ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.icon-btn.ai-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-result-modal {
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.ai-result-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.ai-result-header i {
    font-size: 1.8rem;
}

.ai-result-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

.ai-result-content {
    margin-bottom: 1.5rem;
    overflow-y: auto;
    max-height: 50vh;
    padding-right: 0.5rem;
}

.ai-result-content::-webkit-scrollbar {
    width: 6px;
}

.ai-result-content::-webkit-scrollbar-track {
    background: transparent;
}

.ai-result-content::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.ai-result-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

.ai-result-reason,
.ai-result-reply,
.ai-result-message,
.ai-result-note {
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 12px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-result-reason strong,
.ai-result-reply strong,
.ai-result-note strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ai-search-results {
    margin-top: 1rem;
    background: var(--background-alt);
    border-radius: 12px;
    padding: 1rem;
}

.ai-search-results-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.ai-search-results-title i {
    color: var(--primary-color);
}

.ai-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.ai-search-result-item:last-child {
    margin-bottom: 0;
}

.ai-search-result-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.ai-search-result-item>i {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.ai-search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ai-search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.ai-search-result-path {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.ai-search-result-item:hover .ai-search-result-name,
.ai-search-result-item:hover .ai-search-result-path {
    white-space: normal;
    word-break: break-all;
    overflow: visible;
}

.ai-search-result-score {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.ai-processing {
    animation: ai-pulse 1.5s ease-in-out infinite;
}

.ai-result-warning {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9rem;
}

[data-theme="dark"] .ai-result-warning {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.confirm-btn-warning {
    background: var(--warning);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn-warning:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}