/* ========== IMPORT K2D FONT ========== */
@import url('https://fonts.googleapis.com/css2?family=K2D:wght@400;600;700&display=swap');

/* ========== RESET & GRUNDINSTÄLLNINGAR ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'K2D', sans-serif;
    background-color: #ffffff;
    color: #333;
    min-width: 1000px;
    overflow-x: auto;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: white;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-width: 1000px;
}

.nav-container {
    width: 100%;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-width: 1000px;
}

/* ========== LOGO ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.camera-icon {
    width: 55px;
    height: 55px;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ========== SÖKFÄLT ========== */
.search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
}

.search-bar input {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 20px;
    border: none;
    background-color: #EBEBEB;
    border-radius: 24px;
    font-size: 16px;
    font-family: 'K2D', sans-serif;
    outline: none;
    color: #333;
    position: relative;
    z-index: 1;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-section-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.search-result-email {
    font-size: 12px;
    color: #999;
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-category {
    font-size: 12px;
    color: #999;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #333;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: #000000;
    transform: translateY(-50%) scale(1.15);
}

.search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-btn:hover .search-icon {
    opacity: 0.7;
}

.search-bar input::placeholder {
    color: #999999;
}

/* ========== NAVBAR KNAPPAR ========== */
.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-primary {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #000000;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: white;
    color: #1a1a1a;
    border: 2px solid #CCCCCC;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* ========== BLUE LOGIN BUTTON ========== */
.btn-login {
    background-color: #3B7DD6;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #2868b0;
    transform: scale(1.05);
}

/* ========== SIGN UP BUTTON ========== */
.btn-signup {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background-color: #000000;
    transform: scale(1.05);
}

/* ========== FILTER SEKTION ========== */
.filter-section {
    background-color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    min-width: 1000px;
}

.filters {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    background-color: white;
    color: #1a1a1a;
    border: 2px solid #CCCCCC;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #666;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* ========== BILDGALLERI ========== */
.gallery-container {
    max-width: 1800px;
    margin: 30px auto;
    padding: 0 40px;
    min-width: 1000px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.image-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.image-card:hover {
    transform: translateY(-4px);
}

.image-placeholder {
    background-color: #E8E8E8;
    height: 320px;
    border-radius: 12px;
}

.uploaded-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Ta bort-knapp på bilder */
.image-card {
    position: relative;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-card:hover .delete-btn {
    display: flex;
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ========== KATEGORI POPUP ========== */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

.category-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.category-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

.category-content h2 {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.category-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.category-input:focus {
    border-color: #1a1a1a;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-option {
    padding: 12px 20px;
    border: 2px solid #CCCCCC;
    background-color: white;
    color: #333;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: #666;
}

.category-option.selected {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-confirm {
    background-color: #1a1a1a;
    color: white;
}

.btn-confirm:hover {
    background-color: #000000;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== AUTH MODAL (LOGIN/REGISTER) ========== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

.auth-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.auth-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    z-index: 9999;
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    color: #666;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-close:hover {
    color: #000;
    transform: scale(1.1);
}

.auth-form h2 {
    font-family: 'K2D', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.auth-description {
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: #1a1a1a;
}

.password-hint {
    display: block;
    font-family: 'K2D', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.auth-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn-primary:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.auth-link {
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

.auth-link a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #000;
    text-decoration: underline;
}

/* Avatar Selection */
.avatar-selection {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: #666;
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #1a1a1a;
    border-width: 3px;
    background-color: #f5f5f5;
}

.avatar-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #CCCCCC;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    color: transparent;
}

.avatar-file-input:hover {
    border-color: #1a1a1a;
}

.avatar-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.avatar-file-input::before {
    content: 'Välj profilbild';
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
}

.avatar-file-input:hover::before {
    background: #000;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    overflow: hidden;
    background: #f9f9f9;
}

.avatar-placeholder {
    display: none;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Avatar i Navbar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    background-color: #000;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: auto;
    max-width: 95%;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    padding-bottom: 15px;
    z-index: 10000;
    animation: zoomIn 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.lightbox-close:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

.lightbox-info {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    min-width: 250px;
}

.lightbox-details {
    flex: 1;
}

.lightbox-title {
    font-family: 'K2D', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.lightbox-category {
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
    background-color: #f5f5f5;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
}

.lightbox-uploader {
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    color: #999;
    margin: 8px 0 0 0;
}

.uploader-link {
    color: #3B7DD6;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.uploader-link:hover {
    color: #2868b0;
    text-decoration: underline;
}

.edit-name-btn {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-start;
}

.edit-name-btn:hover {
    background-color: #e0e0e0;
}

.edit-container {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    position: relative;
    z-index: 10001;
    background: white;
}

.edit-container .form-group {
    margin-bottom: 15px;
}

.edit-container label {
    display: block;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.edit-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    outline: none;
}

.edit-input:focus {
    border-color: #1a1a1a;
}

.category-buttons-edit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-option-edit {
    padding: 10px 16px;
    border: 2px solid #CCCCCC;
    background-color: white;
    color: #333;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option-edit:hover {
    border-color: #666;
}

.category-option-edit.selected {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.edit-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.save-btn,
.cancel-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background-color: #1a1a1a;
    color: white;
}

.save-btn:hover {
    background-color: #000000;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== RESPONSIV DESIGN (MOBIL) ========== */
/* Disabled to keep layout fixed */
/*
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .search-bar {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        margin: 20px 0;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }
}
*/

/* ========== LIKE BUTTON ========== */
.like-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 2;
    transition: transform 0.2s ease;
}

.like-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}

.like-btn.liked img {
    filter: brightness(0) saturate(100%) invert(30%) sepia(90%) saturate(7000%) hue-rotate(340deg) brightness(95%);
}

.like-count {
    position: absolute;
    bottom: 12px;
    right: 45px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* ========== PROFILSIDA ========== */
.profile-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px;
}

.profile-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-family: 'K2D', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.profile-email {
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 15px 0;
}

.btn-logout {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #1a1a1a;
}

.tab-btn.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.profile-content {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.btn-back {
    background: none;
    border: none;
    color: #1a1a1a;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #666;
}

/* ========== PRIVACY TOGGLE ========== */
.privacy-toggle {
    margin: 20px 0;
}

.privacy-title {
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.privacy-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.privacy-btn {
    min-width: 120px;
    padding: 12px 24px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #666;
}

.privacy-btn:hover {
    transform: translateY(-2px);
}

.public-btn.active {
    background-color: #3B7DD6;
    color: white;
    border-color: #3B7DD6;
}

.private-btn.active {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.privacy-hint {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.btn-logout-nav {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout-nav:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

/* ========== DELETE ACCOUNT ========== */
.delete-account-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-delete-account {
    background-color: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'K2D', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-account:hover {
    background-color: #ff4444;
    color: white;
    transform: translateY(-2px);
}

/* ========== USER PROFILE MODAL ========== */
.user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.user-profile-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
}

.user-profile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-close:hover {
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
}

.user-profile-info h2 {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.user-profile-info p {
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.user-profile-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.user-profile-image-card {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-profile-image-card:hover {
    transform: scale(1.05);
}

.user-profile-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ========== ADMIN STYLING ========== */
.admin-badge {
    background-color: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'K2D', sans-serif;
}

.admin-badge-small {
    background-color: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'K2D', sans-serif;
    margin-left: 10px;
    vertical-align: middle;
}

.admin-controls {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff3f3;
    border-radius: 8px;
    border: 1px solid #ffcccc;
    display: flex;
    gap: 10px;
}

.btn-deactivate {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deactivate:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

.btn-delete-user {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-user:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* Delete Account Section - next to profile info */
.delete-account-section {
    margin-top: 15px;
}

.btn-delete-account {
    background-color: white;
    color: #ff4444;
    border: 2px solid #ff4444;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'K2D', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-account:hover {
    background-color: #ff4444;
    color: white;
}

/* ========== SEARCH RESULTS DROPDOWN ========== */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 5px;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-section-title {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.search-result-email {
    font-size: 12px;
    color: #999;
}

/* ========== CUSTOM POPUP MODAL ========== */
.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.2s ease;
}

.custom-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.custom-popup-content {
    position: relative;
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    z-index: 100000;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.custom-popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.custom-popup-icon.success {
    background-color: #4CAF50;
}

.custom-popup-icon.error {
    background-color: #ff4444;
}

.custom-popup-icon.warning {
    background-color: #ff9800;
}

.custom-popup-icon.info {
    background-color: #3B7DD6;
}

.custom-popup-title {
    font-family: 'K2D', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.custom-popup-message {
    font-family: 'K2D', sans-serif;
    font-size: 15px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
    white-space: pre-line;
}

.custom-popup-btn {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 25px;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-popup-btn:hover {
    background-color: #000;
    transform: scale(1.05);
}

.custom-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-popup-btn-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-family: 'K2D', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-popup-btn-cancel:hover {
    background-color: #e0e0e0;
}