.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    position: relative;
    box-sizing: border-box;
}

.manga-result-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manga-image {
    width: 50px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.manga-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-info {
    flex-grow: 1;
}

.manga-title {
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.manga-title strong {
    color: #4CAF50;
    font-weight: bold;
}

.manga-details {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 8px;
}

.manga-type {
    color: #4CAF50;
}

.no-result-item {
    padding: 20px 15px;
    text-align: center;
}

.no-results-message {
    color: #888;
}

.add-suggestion {
    margin-top: 8px;
}

.click-to-add {
    color: #4CAF50;
    cursor: pointer;
    text-decoration: underline;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2A2A2A;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #404040;
    border-color: #666;
    text-decoration: none;
    color: #fff;
}

.login-button svg {
    width: 24px !important;
    height: 24px !important;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
    z-index: 1001;
}

.logo {
    width: 48px;
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.nav-link {
    margin: 0;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    height: 28px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #444;
    border-radius: 5px;
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 80%;
}

.user-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background-color: #444 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 5px !important;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    min-width: 150px !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.user-dropdown.show,
.user-dropdown[style*="block"] {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.user-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: auto;
    position: relative;
}

.user-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background-color: #444 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 5px !important;
    z-index: 9999 !important;
    padding: 10px 0 !important;
    min-width: 150px !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.user-dropdown.show,
.user-dropdown[style*="block"] {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.user-dropdown a svg {
    margin-right: 6px;
    stroke: currentColor;
    width: 18px;
    height: 18px;
}

.user-dropdown a:hover {
    background-color: #555;
}

.user-dropdown a.pending-manga:hover {
    background-color: #555 !important;
    color: rgb(92, 199, 42) !important;
}

.user-icon {
    width: 36px !important;
    height: 36px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.user-icon[src*="admin.png"], .user-icon[src*="user.svg"] {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.user-pfp {
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    width: 40px !important;
    height: 40px !important;
    filter: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-icon:hover, .user-pfp:hover {
    transform: scale(1.05);
}

.user-icon[src*="admin.png"]:hover {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(280deg) brightness(120%) contrast(100%);
}

.user-icon:active, .user-pfp:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.user-profile-container {
    position: relative;
    display: inline-block;
}

.admin-gear-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #2A2A2A;
    border: 2px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.admin-gear-badge svg {
    width: 11px;
    height: 11px;
    color: #ccc;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .user-icon:hover, .user-pfp:hover {
        transform: scale(1.03);
    }
    
    .admin-gear-badge {
        width: 16px;
        height: 16px;
    }
    
    .admin-gear-badge svg {
        width: 9px;
        height: 9px;
    }
}

.no-result-item {
    padding: 10px;
    text-align: center;
    font-style: italic;
    cursor: pointer;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    background-color: #2A2A2A;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

body.popup-open {
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.popup-content h3 {
    margin-top: 0;
}

.popup-content form {
    display: flex;
    flex-direction: column;
}

.popup-content form label {
    margin-top: 10px;
}

.popup-content form input,
.popup-content form button {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
}

.popup-content form button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content form button:hover {
    background-color: #0056b3;
}

select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

select:focus {
    border-color: #007BFF;
}

select option {
    background-color: #2A2A2A;
    color: #fff;
}

#additional-authors-container {
    margin-top: 10px;
}

#additional-authors-container input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

#additional-authors-container input:focus {
    border-color: #007BFF;
}

.search-container {
    position: relative;
    width: 300px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    height: 48px;
}

.search-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background-size: 400% 400%;
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.search-container:hover::before {
    opacity: 1;
}

.search-container input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    height: 28px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.search-container input:focus {
    background-color: #4a4a4a;
    border-color: #fff;
    color: #fff;
    box-shadow: #fff;
    transform: scale(1.02);
}

.search-container input:focus::placeholder {
    color: transparent;
}

.search-container input::placeholder {
    color: #aaa;
    transition: color 0.3s ease;
}

.search-container input:not(:placeholder-shown) {
    background: linear-gradient(135deg, #4a4a4a 0%, #525252 100%);
    border-color: #fff;
    box-shadow: #fff;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    stroke: #aaa;
    stroke-width: 2;
    fill: none;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.search-container input:focus ~ .search-icon {
    stroke: #fff;
    transform: translateY(-50%) scale(1.1);
}

.search-container input:not(:placeholder-shown) ~ .search-icon {
    stroke: #fff;
}

.search-container:hover input {
    border-color: #666;
    background-color: #4a4a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-container:hover .search-icon {
    stroke: #ccc;
    transform: translateY(-50%) scale(1.05);
}


.search-result-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 3px solid transparent !important;
}

.search-result-item:hover {
    transform: translateX(5px) !important;
    border-left-color: #4CAF50 !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1) !important;
}

.result-image {
    transition: transform 0.3s ease !important;
}

.search-result-item:hover .result-image {
    transform: scale(1.05) !important;
}

.result-image img {
    transition: filter 0.3s ease !important;
}

.search-result-item:hover .result-image img {
    filter: brightness(110%) !important;
}

.result-title {
    transition: color 0.3s ease !important;
}

.search-result-item:hover .result-title {
    color: #4CAF50 !important;
}

.search-highlight {
    background: linear-gradient(90deg, #ffc107, #ffdd4a) !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

.search-container.loading input {
    background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.notification {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.notification-icon {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    transition: all 0.2s ease;
}

.notification:hover {
    background-color: #444;
}

.notification:hover .notification-icon {
    stroke: #fff;
}

.notification.has-new::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid #333;
}

.notification:active {
    transform: scale(0.98);
}

.default-avatar {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #fff !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    filter: none !important;
}

.default-avatar svg {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.default-avatar:hover {
    transform: scale(1.15) !important;
    border-color: #4CAF50 !important;
    border-width: 3px !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
}

.default-avatar:hover svg {
    filter: brightness(110%) !important;
}

.default-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.default-avatar:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 50%, transparent 70%);
}

.default-avatar:hover {
    animation: profileFloat 0.8s ease-in-out;
}

.default-avatar:active {
    transform: scale(1.05) !important;
    transition: transform 0.1s ease !important;
}

.default-avatar:active::before {
    animation: profileRipple 0.5s linear;
}

.default-avatar.admin:hover svg {
    filter: brightness(120%) drop-shadow(0 0 8px rgba(255, 193, 7, 0.4)) !important;
}

.default-avatar.admin:hover::before {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 50%, transparent 70%);
}

@media (max-width: 768px) {
    .default-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    
    .default-avatar:hover {
        transform: scale(1.1) !important;
    }
}
.settings-popup-content {
    width: 70%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 25px;
    gap: 0;
}

.settings-tab {
    background: none;
    border: none;
    color: #ccc;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.settings-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.settings-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.settings-tab svg {
    transition: all 0.3s ease;
}

.settings-tab.active svg {
    stroke: #4CAF50;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h6 {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-pfp-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.current-pfp-img,
.current-pfp-default {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #555;
    object-fit: cover;
}

.current-pfp-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
}

.current-pfp-default svg {
    width: 40px;
    height: 40px;
}

.pfp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-control {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4CAF50;
    background-color: #3a3a3a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.small-select {
    width: 120px;
}

.password-field {
    margin-bottom: 15px;
}

.password-field label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.password-strength {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak::after {
    width: 33%;
    background: #f44336;
}

.password-strength.medium::after {
    width: 66%;
    background: #ff9800;
}

.password-strength.strong::after {
    width: 100%;
    background: #4CAF50;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #777;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #da190b;
}

.btn-primary.small, .btn-secondary.small, .btn-danger.small {
    padding: 6px 12px;
    font-size: 12px;
}

.account-info {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #ccc;
    font-size: 14px;
}

.info-value {
    color: #fff;
    font-weight: 500;
}

.admin-badge .info-value.admin-text {
    color: #ffc107;
    font-weight: 600;
}

.session-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.current-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-device {
    font-weight: 500;
    color: #fff;
}

.session-time {
    font-size: 12px;
    color: #888;
}

.session-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.session-badge.current {
    background-color: #4CAF50;
    color: white;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.danger-zone {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.05);
}

.danger-zone h6 {
    color: #f44336 !important;
}

.danger-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.danger-text {
    color: #f44336;
    font-size: 12px;
}

.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.pfp-modal-content {
    width: 500px;
    max-width: 90vw;
}

.pfp-upload-area {
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.pfp-upload-area:hover {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.pfp-preview-area {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfp-preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #888;
}

.pfp-placeholder svg {
    stroke: #666;
}

.crop-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.crop-controls label {
    color: #ccc;
    font-size: 14px;
}

.crop-controls input[type="range"] {
    width: 200px;
}

.pfp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .settings-popup-content {
        width: 95%;
        max-height: 85vh;
        padding: 15px;
    }
    
    .settings-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .settings-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .current-pfp-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .danger-actions {
        flex-direction: column;
    }
    
    .pfp-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .pfp-upload-area {
        padding: 20px;
    }
    
    .pfp-preview-area {
        width: 150px;
        height: 150px;
    }
}

.popup-content::-webkit-scrollbar {
    width: 10px;
}

.popup-content::-webkit-scrollbar-track {
    background: #444;
    border-radius: 5px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #777;
    border-radius: 5px;
    border: 2px solid #444;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}