/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

header h1 {
    margin: 0;
    display: flex;
    align-items: center;
}

header h1 a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header h1 a:hover {
    color: #e44985;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 6px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: inline-block;
}

nav a:hover {
    color: #e44985;
    border-color: #e44985;
    background: rgba(228, 73, 133, 0.1);
}

/* Main Content */
main {
    min-height: 100vh;
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

main > * {
    position: relative;
    z-index: 1;
}

/* Home Page Specific */
.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 95px 40px 60px;
}

.home-container h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #e8ecf0;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.home-container p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: #d4d4d4;
    line-height: 2;
    text-align: justify;
}

.home-container p strong {
    color: #fff;
    font-size: 1.2rem;
}

.home-container a {
    color: #AA86CD;
    text-decoration: underline;
}

.home-container a:hover {
    color: #c9a0e8;
}

/* Link colors for sex */
.sex-0 {
    color: #FF69B4;
}

.sex-1 {
    color: #00BFFF;
}

.link {
    color: #AA86CD;
}

.sex-0:hover,
.sex-1:hover {
    color: #AA86CD;
}

.link:hover {
    color: #c9a0e8;
}

/* Memories Page */
.memories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 60px;
}

.memories-container section {
    margin-bottom: 30px;
    border-bottom: 2px solid #555;
    padding-bottom: 20px;
}

.memories-container section:last-child {
    border-bottom: none;
}

.memories-container h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #c9d0d4;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-top: 2px solid #555;
    border-bottom: 2px solid #555;
    padding: 10px 0;
}

.memories-container p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Date Search Form */
.date-search-section form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-search-section label {
    color: #ccc;
    font-size: 0.95rem;
}

.date-search-section input[type="month"] {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.date-search-section input[type="submit"] {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.date-search-section input[type="submit"]:hover {
    background: #6ab0ff;
}

/* Peeps List */
.peeps-list {
    list-style: none;
    column-count: 4;
    column-gap: 25px;
}

.peeps-list li {
    break-inside: avoid;
    margin-bottom: 0px;
    font-size: 1rem;
    line-height: 1.2;
}

.peeps-list li::before {
    content: '➜';
    margin-right: 6px;
    color: #666;
    font-size: 0.8rem;
}

.peeps-list a {
    display: inline;
}

.peeps-list .count {
    color: #888;
    font-size: 0.85rem;
    margin-left: 2px;
}

/* Tags List */
.tags-list {
    list-style: none;
    column-count: 3;
    column-gap: 25px;
}

.tags-list li {
    break-inside: avoid;
    margin-bottom: 0px;
    font-size: 1rem;
    line-height: 1.2;
}

.tags-list li::before {
    content: '➜';
    margin-right: 6px;
    color: #666;
    font-size: 0.8rem;
}

.tags-list a {
    display: inline;
}

/* Peep Profile Page */
.peep-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 95px 40px 60px;
}

.peep-logged-in-status {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.peep-logged-in-status strong {
    font-weight: 600;
}

.peep-logged-in-status .logout-link {
    color: #4a9eff;
    text-decoration: underline;
}

.peep-logged-in-status .logout-link:hover {
    color: #6ab0ff;
}

.peep-profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.peep-profile-picture {
    flex-shrink: 0;
    position: relative;
}

.peep-profile-picture-editable {
    cursor: pointer;
}

.peep-profile-picture-editable:hover .profile-picture-overlay {
    opacity: 1;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-picture-overlay span {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.peep-profile-picture img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #444;
}

.peep-profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: bold;
    border: 2px solid #444;
    background: rgba(255, 255, 255, 0.05);
}

.peep-profile-info {
    flex: 1;
}

.peep-profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.peep-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.keyword {
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #6ab0ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.keyword:hover {
    background: rgba(74, 158, 255, 0.25);
    border-color: rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
}

.keyword-count {
    color: #4a9eff;
    font-size: 0.8rem;
    margin-left: 3px;
}

.peep-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.stat-rank {
    color: #888;
    font-size: 1.2rem;
    font-weight: normal;
    margin-left: 8px;
    vertical-align: baseline;
}

.peep-profile-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.peep-profile-text h2 {
    color: #e8ecf0;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.peep-profile-text p {
    color: #d4d4d4;
    font-size: 1.05rem;
    line-height: 1.8;
}

.peep-date-search {
    padding: 20px;
    margin-top: 0px;
    text-align: center;
}

.peep-date-search h3 {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.peep-date-search form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.peep-date-search .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.peep-date-search label {
    color: #999;
    font-size: 0.85rem;
}

.peep-date-search input[type="month"] {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.peep-date-search input[type="submit"] {
    background: transparent;
    color: #4a9eff;
    border: 1px solid #4a9eff;
    padding: 6px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.peep-date-search input[type="submit"]:hover {
    background: #4a9eff;
    color: #fff;
}

.peep-profile-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.view-memories-btn,
.back-btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.view-memories-btn {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.view-memories-btn:hover {
    background: #6ab0ff;
    border-color: #6ab0ff;
}

.back-btn {
    background: transparent;
    color: #aaa;
    border-color: #666;
}

.back-btn:hover {
    color: #fff;
    border-color: #aaa;
}

/* Image Slider */
.slider-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 35px;
}

.slider-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}

.slider-arrow {
    position: absolute;
    bottom: 140px;
    background: rgba(228, 73, 133, 0.7);
    border: 2px solid rgba(228, 73, 133, 0.9);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(228, 73, 133, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(228, 73, 133, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(228, 73, 133, 0.8);
        transform: scale(1.05);
    }
}

.slider-arrow svg {
    width: 36px;
    height: 36px;
}

.slider-arrow:hover {
    background: rgba(228, 73, 133, 0.9);
    transform: scale(1.15);
    animation: none;
    box-shadow: 0 0 35px rgba(228, 73, 133, 0.9);
}

.slider-arrow-left {
    left: 30px;
}

.slider-arrow-right {
    right: 30px;
}

.slide-info-panel {
    position: absolute;
    top: 40%;
    right: 15%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    max-height: calc(100% - 190px);
    display: flex;
    flex-direction: column;
}

.slide-info {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(40, 40, 60, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: max-content;
    min-width: 150px;
    max-width: 250px;
    margin-left: auto;
    overflow-y: auto;
    max-height: 100%;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.slide-info::-webkit-scrollbar {
    width: 6px;
}

.slide-info::-webkit-scrollbar-track {
    background: transparent;
}

.slide-info::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.slide-info::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.slide-info.active {
    display: block;
    animation: slideUp 0.4s ease;
    pointer-events: auto;
}

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

.info-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

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

.info-label {
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.info-value {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-value a {
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 3px;
}

.info-value a:last-child {
    margin-bottom: 0;
}

.info-value a:hover {
    opacity: 0.8;
}

.slider-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 30px 20px 15px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.95));
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
    margin-top: -80px;
    position: relative;
    z-index: 15;
    flex-shrink: 0;
}

.slider-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.slider-thumbnails::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.slider-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #e44985;
    opacity: 1;
    box-shadow: 0 0 15px rgba(228, 73, 133, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-screens {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    text-align: center;
}

.no-screens p {
    font-size: 1.2rem;
    color: #888;
}

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

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.close-fullscreen {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    line-height: 1;
    padding: 0;
}

.close-fullscreen:hover {
    background: rgba(228, 73, 133, 0.8);
    border-color: rgba(228, 73, 133, 1);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .peeps-list {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .peeps-list {
        column-count: 2;
    }

    .tags-list {
        column-count: 2;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }

    .thumbnail {
        width: 100px;
        height: 66px;
    }
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
}

.comments-section-subtle {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid #333;
    padding: 20px;
}

.comments-section-subtle h2 {
    font-size: 1.2rem;
    color: #777;
}

.comments-section h2 {
    color: #e8ecf0;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.logged-in-status {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.95rem;
}

.logged-in-status strong {
    font-weight: 600;
}

.logged-in-status a {
    color: #4a9eff;
    text-decoration: underline;
}

.logged-in-status a:hover {
    color: #6ab0ff;
}

.login-prompt {
    text-align: center;
    padding: 30px;
}

.login-prompt p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.login-prompt-subtle {
    text-align: center;
    padding: 15px;
}

.btn-login {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

.btn-login-subtle {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-login-subtle:hover {
    background: #6ab0ff;
}

.comment-form {
    margin-bottom: 30px;
}

/* Admin Comments Page */
.admin-comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.admin-comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.admin-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-comment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-arrow {
    color: #666;
    font-size: 1rem;
}

.admin-comment-content {
    color: #d4d4d4;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #444;
}

.admin-comment-actions {
    text-align: right;
}

.btn-delete-comment {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-delete-comment:hover {
    background: #ff6b6b;
    color: #fff;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.btn-post {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-post:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

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

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 15px;
}

.comment-author {
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.2s ease;
}

.comment-author:hover {
    opacity: 0.8;
}

.comment-date {
    color: #666;
    font-size: 0.85rem;
    white-space: nowrap;
}

.comment-content {
    color: #d4d4d4;
    font-size: 1rem;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    font-size: 1.05rem;
}

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

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(40, 40, 60, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(228, 73, 133, 0.8);
    border-color: rgba(228, 73, 133, 1);
    transform: scale(1.1);
}

.login-modal-content h2 {
    color: #e8ecf0;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-modal-content .form-group {
    margin-bottom: 20px;
}

.login-modal-content label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-modal-content select,
.login-modal-content input[type="password"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-modal-content select:focus,
.login-modal-content input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.btn-login-submit {
    width: 100%;
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

/* Admin Pages */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 40px 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.admin-header h1 {
    color: #e8ecf0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-header .logout-btn {
    background: transparent;
    color: #aaa;
    border: 2px solid #666;
    padding: 10px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.admin-header .logout-btn:hover {
    color: #fff;
    border-color: #aaa;
}

.peeps-password-list {
    display: grid;
    gap: 20px;
}

.peep-password-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
}

.peep-password-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

.peep-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.peep-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.peep-status {
    font-size: 0.85rem;
    color: #888;
}

.peep-status.can-login {
    color: #32cd32;
}

.peep-status.cannot-login {
    color: #ff6b6b;
}

.password-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.password-form input[type="password"] {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.password-form input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.password-form button {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.password-form button:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

.password-form .btn-disable {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.password-form .btn-disable:hover {
    background: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-box {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(40, 40, 60, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.admin-login-box h1 {
    color: #e8ecf0;
    font-size: 2rem;
    margin-bottom: 35px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-login-box .form-group {
    margin-bottom: 25px;
}

.admin-login-box label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-login-box input[type="password"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 14px 15px;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-login-box input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.admin-login-box button {
    width: 100%;
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.admin-login-box button:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

.error-message {
    background: rgba(228, 73, 73, 0.1);
    border: 1px solid rgba(228, 73, 73, 0.3);
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    color: #32cd32;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Admin Tag Page - New Layout */
.tag-screen-layout {
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 10px;
    padding: 10px;
    margin: 0;
}

.screen-display-large {
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.screen-display-large .screen-info-header {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.screen-display-large .screen-info-header h3 {
    color: #aaa;
    font-size: 0.8rem;
    text-align: center;
    font-weight: normal;
}

.screen-display-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #333;
    display: block;
}

.tagging-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.tagging-panel::-webkit-scrollbar {
    width: 8px;
}

.tagging-panel::-webkit-scrollbar-track {
    background: transparent;
}

.tagging-panel::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.form-section {
    margin-bottom: 20px;
    position: relative;
}

.form-section h3 {
    color: #e8ecf0;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.form-section input[type="text"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-section input[type="text"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.form-section select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-section select[multiple] {
    padding: 5px;
    height: auto;
}

.form-section select[multiple] option {
    padding: 5px 8px;
    border-radius: 3px;
    margin: 2px 0;
}

.form-section select[multiple] option:checked {
    background: linear-gradient(rgba(74, 158, 255, 0.3), rgba(74, 158, 255, 0.3));
    color: #fff;
}

.form-section select:focus {
    outline: none;
    border-color: #4a9eff;
}


.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #4a9eff;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #333;
}

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

.search-result-item:hover {
    background: rgba(74, 158, 255, 0.1);
}

.no-results {
    padding: 10px 15px;
    color: #666;
    font-style: italic;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
}

.selected-item {
    background: rgba(74, 158, 255, 0.15);
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.selected-item:hover {
    background: rgba(74, 158, 255, 0.25);
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.remove-item:hover {
    transform: scale(1.3);
}

.tag-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4d4d4;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.checkbox-label-inline:hover {
    color: #fff;
}

.checkbox-label-inline input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Admin Tag Page - Old Search Form (keep for compatibility) */
.admin-search-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.admin-search-form h3 {
    color: #e8ecf0;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-row label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="text"],
.form-row select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-row select {
    cursor: pointer;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #4a9eff;
}

.btn-search {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

.admin-tag-layout {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
    margin-bottom: 40px;
}

.screen-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.screen-info-header {
    margin-bottom: 15px;
}

.screen-info-header h3 {
    color: #e8ecf0;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.screen-path {
    color: #666;
    font-size: 0.85rem;
}

.screen-display img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #333;
}

.tagging-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    max-height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.tagging-form::-webkit-scrollbar {
    width: 8px;
}

.tagging-form::-webkit-scrollbar-track {
    background: transparent;
}

.tagging-form::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.tagging-section {
    margin-bottom: 30px;
}

.tagging-section h3 {
    color: #e8ecf0;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.checkbox-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tags-columns {
    grid-template-columns: repeat(2, 1fr);
}

.checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4d4d4;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #fff;
}

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

.checkbox-label .count {
    color: #666;
    font-size: 0.8rem;
}

.btn-apply {
    width: 100%;
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-apply:hover {
    background: #6ab0ff;
    transform: translateY(-2px);
}

.no-screen-message {
    text-align: center;
    padding: 80px 20px;
}

.no-screen-message p {
    color: #666;
    font-size: 1.2rem;
}

.admin-header div {
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .peeps-list {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .peeps-list {
        column-count: 2;
    }

    .tags-list {
        column-count: 2;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }

    .thumbnail {
        width: 100px;
        height: 66px;
    }

    .peep-password-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .password-form {
        flex-direction: column;
        align-items: stretch;
    }

    .password-form button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .home-container {
        padding: 100px 20px 40px;
    }

    .home-container h2 {
        font-size: 2rem;
    }

    .home-container p {
        font-size: 1rem;
    }

    .memories-container {
        padding: 80px 20px 40px;
    }

    .memories-container h2 {
        font-size: 1.5rem;
    }

    .peeps-list,
    .tags-list {
        column-count: 1;
    }

    .date-search-section form {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-container {
        padding-top: 70px;
    }

    .slide-info-panel {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .slider-thumbnails {
        padding: 10px;
    }

    .slide-info {
        padding: 15px;
    }

    .info-section {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }

    .thumbnail {
        width: 80px;
        height: 53px;
    }

    .admin-container {
        padding: 95px 20px 40px;
    }

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

    .admin-login-box {
        padding: 35px 25px;
    }

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

    .comments-section {
        padding: 20px 15px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
