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

body {
    font-family: 'Montserrat', sans-serif;
    background: #2a2a2a;
    min-height: 100vh;
    color: #ffffff;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: rgba(42, 42, 42, 0.95);
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 2em;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.admin-subtitle {
    font-family: 'Cormorant Garamond', serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.password-input {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn {
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    background: transparent;
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #2a2a2a;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.7);
}

.error-message {
    color: #fca5a5;
    font-size: 0.9em;
    min-height: 20px;
    letter-spacing: 0.5px;
}

.create-account-link-container {
    text-align: center;
    margin: 15px 0 20px;
}

.create-account-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.create-account-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.back-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Admin Panel */
.admin-panel {
    min-height: 100vh;
    padding: 40px 20px;
}

.admin-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-header-actions .btn {
    text-decoration: none;
}

.admin-content {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Filter Bar */
.filter-bar {
    background: rgba(139, 115, 85, 0.2);
    border: 1px solid rgba(139, 115, 85, 0.5);
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.filter-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-text::before {
    content: '🔍';
    font-size: 1.2em;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 20px 30px;
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-clickable:hover {
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.3);
    transform: translateY(-2px);
}

.stat-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 10px;
}

.stat-action .btn {
    width: 100%;
    margin: 0;
}

.stat-clickable:active {
    transform: translateY(0);
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    color: white;
    font-size: 2em;
    font-weight: 300;
    letter-spacing: 2px;
}

.status-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    letter-spacing: 0.5px;
    font-size: 0.95em;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    letter-spacing: 1px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    letter-spacing: 1px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #667eea;
    background: rgba(255, 255, 255, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ban List Section */
.ban-list-section,
.comments-section,
.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.settings-section h2,
.ban-list-section h2,
.comments-section h2 {
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.ban-list-container,
.comments-container,
.settings-container {
    margin-top: 15px;
}

.ban-list-empty,
.comments-empty {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.ban-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ban-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.child-comment-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.comment-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

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

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-device {
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-guest-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-guest-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-guest-avatar.placeholder {
    background: linear-gradient(135deg, rgba(185, 156, 107, 0.4), rgba(150, 120, 80, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.comment-guest-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.comment-timestamp {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-like-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    margin-left: 8px;
    padding: 4px 8px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 4px;
    font-size: 0.85em;
    color: rgba(255, 200, 200, 0.9);
}

.comment-like-count .like-icon {
    font-size: 1em;
}

.comment-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.children-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.children-checkbox {
    cursor: pointer;
}

.children-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.child-comment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

.child-comment:last-child {
    margin-bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    margin-top: 10px;
}

.page-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    min-width: 100px;
    text-align: center;
}

.ban-ip {
    color: #fca5a5;
    font-family: monospace;
    font-size: 0.95em;
}

.btn-unban {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.4);
    padding: 6px 14px;
    font-size: 11px;
}

.btn-unban:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
}

.btn-delete-comment {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
    padding: 6px 14px;
    font-size: 11px;
}

.btn-delete-comment:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px; /* Add padding to prevent menu cutoff at edges */
}

.photo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to visible */
    transition: all 0.3s ease;
    position: relative; /* Establish stacking context */
    z-index: 1; /* Default z-index */
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 5; /* Lift on hover, but still below active menu */
}

.photo-card:has(.kebab-menu.active) {
    z-index: 999; /* Card with active menu goes to top */
}

.photo-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Keep this hidden for the image */
    border-radius: 8px 8px 0 0; /* Round top corners */
}

.photo-thumbnail,
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.photo-info {
    padding: 15px;
}

.photo-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin-bottom: 8px;
    word-break: break-word;
    letter-spacing: 0.5px;
}

.photo-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.photo-ip {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75em;
    font-family: monospace;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ip-label {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.photo-guest-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.photo-guest-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-guest-avatar.placeholder {
    background: linear-gradient(135deg, rgba(185, 156, 107, 0.4), rgba(150, 120, 80, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.photo-guest-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.photo-actions {
    position: relative;
}

/* Kebab Menu */
.kebab-menu-container {
    position: relative;
    z-index: 10; /* Ensure container has stacking context */
}

.kebab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.kebab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.kebab-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(30, 30, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000; /* Increased from 100 to 1000 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.kebab-menu.active {
    display: flex;
    z-index: 1000; /* Ensure it stays on top when active */
}

.kebab-menu-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kebab-menu-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.kebab-menu-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.kebab-menu-item.view {
    color: #93c5fd;
}

.kebab-menu-item.filter {
    color: #8b7355;
}

.kebab-menu-item.ban {
    color: #fdba74;
}

.kebab-menu-item.delete {
    color: #fca5a5;
}

.kebab-menu-item::before {
    font-size: 14px;
}

.kebab-menu-item.view::before {
    content: '👁️';
}

.kebab-menu-item.filter::before {
    content: '🔍';
}

.kebab-menu-item.ban::before {
    content: '🚫';
}

.kebab-menu-item.delete::before {
    content: '🗑️';
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-view {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-view:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

.btn-ban {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
    border-color: rgba(251, 146, 60, 0.3);
}

.btn-ban:hover {
    background: rgba(251, 146, 60, 0.25);
    border-color: rgba(251, 146, 60, 0.5);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.modal-filename {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 30px;
    word-break: break-word;
}

.modal-ip {
    color: #fca5a5;
    font-size: 1.1em;
    font-family: monospace;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-note {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.modal-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
}

.modal-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.modal-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.modal-comment-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 15px 0;
    word-wrap: break-word;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .admin-title {
        font-size: 1.5em;
        letter-spacing: 3px;
    }

    .admin-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .stats-bar {
        flex-direction: column;
    }

    .stat {
        min-width: 100%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* Settings Form Styles */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setting-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.setting-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.setting-title {
    font-size: 1.1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.setting-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    line-height: 1.5;
    margin-top: 8px;
}

.setting-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.setting-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.setting-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.settings-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
}

.settings-status.success {
    color: #10b981;
}

.settings-status.error {
    color: #ef4444;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar.dark {
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.flatpickr-calendar.dark .flatpickr-months {
    background: rgba(255, 255, 255, 0.05);
}

.flatpickr-calendar.dark .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flatpickr-calendar.dark .flatpickr-current-month input.cur-year {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flatpickr-calendar.dark .flatpickr-day.selected {
    background: #667eea;
    border-color: #667eea;
}

.flatpickr-calendar.dark .flatpickr-day.selected:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.flatpickr-calendar.dark .flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flatpickr-calendar.dark .flatpickr-time input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.flatpickr-calendar.dark .flatpickr-time input:hover,
.flatpickr-calendar.dark .flatpickr-time input:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Users Tab Styles */
.users-section {
    padding: 20px 0;
}

.user-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.user-toast.show {
    opacity: 1;
}

.users-container {
    margin-top: 20px;
}

.users-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px;
    font-size: 1.1em;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-avatar.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.user-name {
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    word-break: break-word;
}

.user-stats {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.selected-user-content {
    margin-top: 30px;
}

.selected-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
    margin-bottom: 30px;
}

.selected-user-header .user-avatar {
    width: 60px;
    height: 60px;
    margin: 0;
}

.selected-user-info {
    flex: 1;
}

.selected-user-info .user-name {
    font-size: 1.3em;
    margin-bottom: 4px;
}

.selected-user-info .user-stats {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.user-content-section {
    margin-bottom: 40px;
}

.user-content-title {
    font-size: 1.2em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.user-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-photo-item:hover {
    transform: scale(1.05);
}

.user-photo-item img,
.user-photo-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-photo-item .video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.user-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-comment-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.user-comment-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.user-comment-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.user-comment-thumbnail:hover img {
    transform: scale(1.05);
}

.comment-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}

.user-comment-content {
    flex: 1;
    min-width: 0;
}

.user-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.user-comment-time {
    font-size: 0.9em;
}

.user-comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 8px;
}

.user-comment-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Danger Zone */
.danger-zone {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    margin-top: 30px;
}

.danger-zone h2 {
    color: #ef4444 !important;
}

.danger-zone .setting-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Delete All Modal */
.delete-all-list {
    text-align: left;
    margin: 15px 0;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.delete-all-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.modal-warning {
    color: #ef4444;
    margin: 10px 0;
}

.modal-password {
    margin: 20px 0;
    text-align: left;
}

.modal-password label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.modal-password .password-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 1em;
}

.modal-password .password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

#deleteAllModal .error-message {
    color: #ef4444;
    margin: 10px 0;
    min-height: 20px;
}
