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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0D0D0D;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* New Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #171717;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #282828;
    min-height: 64px;
}

.admin-logo {
    display: flex;
    align-items: center;
}

.admin-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.admin-logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 32px;
    width: auto;
}

.admin-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.admin-nav .nav-link {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #9396A8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-nav .nav-link:hover {
    background: #282828;
    color: #FFFFFF;
}

.admin-nav .nav-link.active {
    background: #5B93EF;
    border-color: #5B93EF;
    color: #FFFFFF;
}

.admin-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #282828;
    border-radius: 8px;
    color: #FFFFFF;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.user-menu-button:hover {
    background: #282828;
}

.user-name {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #9396A8;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #171717;
    border: 1px solid #282828;
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-dropdown.show {
    display: block;
}

.user-dropdown .dropdown-item {
    padding: 12px 16px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown .dropdown-item:hover {
    background: #282828;
}

/* Legacy header styles (for backward compatibility) */
header {
    background: #171717;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #282828;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.login-section {
    text-align: center;
    padding: 60px 20px;
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
}

.login-section h2 {
    margin-bottom: 20px;
    color: #FFFFFF;
}

.login-section p {
    color: #9396A8;
    margin-bottom: 30px;
}

label {
    color: #FFFFFF;
}

button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0051D5;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-danger {
    background: #FF3B30;
}

.btn-danger:hover {
    background: #D70015;
}

.btn-success {
    background: #34C759;
}

.btn-success:hover {
    background: #28A745;
}

.btn-secondary {
    background: #8E8E93;
}

.btn-secondary:hover {
    background: #636366;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toggle-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #171717;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #282828;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

input[type="email"],
input[type="password"] {
    font-family: inherit;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #9396A8;
}

input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #282828;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007AFF;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.queue-item {
    background: #171717;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #282828;
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.content-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-note {
    background: #5B93EF;
    color: white;
}

.badge-comment {
    background: #34C759;
    color: white;
}

.content-text {
    font-size: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #0D0D0D;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #282828;
}

.scores-section {
    margin-bottom: 16px;
}

.scores-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9396A8;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #282828;
}

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

.score-label {
    font-size: 14px;
    color: #FFFFFF;
}

.score-value {
    font-size: 14px;
    font-weight: 600;
}

.score-high {
    color: #FF3B30;
}

.score-medium {
    color: #FF9500;
}

.score-low {
    color: #34C759;
}

.metadata {
    font-size: 12px;
    color: #9396A8;
    margin-bottom: 16px;
}

.metadata-item {
    margin-bottom: 4px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #9396A8;
}

.error {
    background: #FF3B30;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success {
    background: #34C759;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9396A8;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #FFFFFF;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #282828;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9396A8;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab:hover {
    color: #FFFFFF;
}

.tab.active {
    color: #5B93EF;
    border-bottom-color: #5B93EF;
}

/* Filter chips */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 8px 16px;
    background: #171717;
    border: 1px solid #282828;
    border-radius: 20px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: #282828;
}

.filter-chip.active {
    background: #5B93EF;
    border-color: #5B93EF;
}

/* Report count badge */
.report-count-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.report-count-normal {
    background: #5B93EF;
    color: white;
}

.report-count-high {
    background: #FF3B30;
    color: white;
}

/* Report reasons */
.report-reasons {
    margin-top: 12px;
    padding: 12px;
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
}

.report-reasons-title {
    font-size: 12px;
    font-weight: 600;
    color: #9396A8;
    margin-bottom: 8px;
}

.report-reason-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #0D0D0D;
    border: 1px solid #282828;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #FFFFFF;
}

/* Dropdown menu styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: #171717;
    border: 1px solid #282828;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-button:hover {
    background: #282828;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #171717;
    border: 1px solid #282828;
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #282828;
    transition: background 0.2s;
}

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

.dropdown-item:hover {
    background: #282828;
}

.dropdown-item.danger {
    color: #FF3B30;
}

.dropdown-item.danger:hover {
    background: #2A1F1F;
}

.author-info {
    margin-bottom: 12px;
    padding: 12px;
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
}

.author-info-label {
    font-size: 12px;
    color: #9396A8;
    margin-bottom: 4px;
}

.author-info-value {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
}

/* Users list styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: #171717;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #282828;
}

.users-table th {
    background: #0D0D0D;
    color: #FFFFFF;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #282828;
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid #282828;
    color: #FFFFFF;
    font-size: 14px;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tr:hover {
    background: #1F1F1F;
}

.user-profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #282828;
}

.user-profile-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9396A8;
    font-weight: 600;
    font-size: 16px;
}

.banned-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #FF3B30;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #5B93EF;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: #FFFFFF;
}

.user-id {
    font-size: 12px;
    color: #9396A8;
}

/* Navigation styles (legacy - kept for backward compatibility) */
.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    background: #171717;
    border: 1px solid #282828;
    border-radius: 8px;
    color: #9396A8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #282828;
    color: #FFFFFF;
}

.nav-link.active {
    background: #5B93EF;
    border-color: #5B93EF;
    color: #FFFFFF;
}

/* Responsive design for admin header */
@media (max-width: 768px) {
    .admin-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .admin-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .admin-logo {
        order: 1;
    }
    
    .admin-user-menu {
        order: 2;
        margin-left: auto;
    }
}

/* Image Gallery Styles */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}

.image-card {
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #0D0D0D;
    overflow: hidden;
}

.image-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #282828;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9396A8;
    font-size: 14px;
}

.image-card-info {
    padding: 12px;
}

.image-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.image-privacy-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.privacy-badge.public {
    background: #34C759;
    color: white;
}

.privacy-badge.friends {
    background: #5B93EF;
    color: white;
}

.image-author {
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.image-restaurant {
    font-size: 12px;
    color: #9396A8;
    margin-bottom: 4px;
}

.image-timestamp {
    font-size: 11px;
    color: #9396A8;
}

.image-note-preview {
    font-size: 12px;
    color: #9396A8;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.image-modal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.image-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-details {
    width: 350px;
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
    padding: 20px;
    overflow-y: auto;
    max-height: 90vh;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #171717;
    border: 1px solid #282828;
    color: #FFFFFF;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-modal-close:hover {
    background: #282828;
}

.image-details-section {
    margin-bottom: 20px;
}

.image-details-section:last-child {
    margin-bottom: 0;
}

.image-details-label {
    font-size: 12px;
    color: #9396A8;
    margin-bottom: 6px;
    font-weight: 600;
}

.image-details-value {
    font-size: 14px;
    color: #FFFFFF;
    word-wrap: break-word;
}

.image-details-note-text {
    font-size: 14px;
    color: #FFFFFF;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 12px;
    background: #0D0D0D;
    border-radius: 8px;
    border: 1px solid #282828;
    margin-top: 8px;
}

.image-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.image-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #282828;
    border-radius: 8px;
    font-size: 16px;
    background: #0D0D0D;
    color: #FFFFFF;
}

.image-search-input::placeholder {
    color: #9396A8;
}

.image-filter-select {
    padding: 12px;
    border: 1px solid #282828;
    border-radius: 8px;
    font-size: 14px;
    background: #171717;
    color: #FFFFFF;
    min-width: 150px;
}

.image-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: #171717;
    border-radius: 8px;
    border: 1px solid #282828;
    font-size: 14px;
    color: #9396A8;
}

.image-stats-item {
    display: flex;
    flex-direction: column;
}

.image-stats-value {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 4px;
}

