@import url('../../stylesheet/root.css');

.galleryinfo {
    position: absolute;
    display: flex;
    width: 1300px;
    max-width: 90%;
    bottom: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 2;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    height: 120px;
}

.galleryPhotoStats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.galleryPhotoStats span {
    font-size: 24px;
    font-weight: bold;
}

.galleryPhotoStats p {
    margin: 0;
}

.mapPicture img {
    width: 150px;
    border-radius: 2px;
}

.mapPicture {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile_text h2 {
    width: auto;
    margin: 0;
}

.galleryMembersContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.userEntry {
    background-color: var(--railwayfansContentBackground);
    border-radius: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100px;
    width: 453px;
    max-width: 95vw;
}

.userEntrylarge {
    width: 100%;
}

.userEntry:hover {
    background-color: var(--railwayfansContentBackground2);
    cursor: pointer;
    transition: 0.5s ease;
}

.profilePic img {
    width: 70px;
    height: 70px;
    border-radius: 35px;
    object-fit: cover;
}

.userName {
    display: flex;
    flex-direction: column;
}

.picsinGallery {
    margin-left: auto;
    font-size: 14px;
}

.galleryColoredLbl {
    background-color: var(--railwayfansMainColor);
    min-width: 0;
}

.settingscontainer {
    width: 460px;
    background-color: var(--railwayfansContentBackground);
    padding: 5px;
    height: fit-content;
}

.settings_section {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.settingsinput {
    width: 450px;
    max-width: 100%;
}
.rf-uploadInputSection {
    width: 100%;
}

.gallerySwitch {
    zoom: 0.8;
}

.gallerySwitch input {
    position: relative;
    left: 30px;
    top: 0px;
    z-index: 0;
    margin-bottom: 15px;
    visibility: hidden;
}

.gallerySwitch input+label {
    position: relative;
    display: block;
    cursor: pointer;
    font-size: 22px;
    line-height: 1.3;
    padding-left: 70px;
    position: relative;
    margin-top: -30px;
}

.gallerySwitch input+label:before {
    width: 60px;
    height: 33px;
    border-radius: 30px;
    border: 2px solid #ddd;
    content: "";
    margin-right: 15px;
    transition: background-color 0.3s linear;
    z-index: 5;
    position: absolute;
    left: 0px;
}

.gallerySwitch input+label:after {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background-color: #333741;
    content: "";
    transition: margin 0.1s linear;
    box-shadow: 0px 0px 5px #aaa;
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 10;
}

.gallerySwitch input:checked+label:after {
    margin: 0 0 0 30px;
}

#openGallerySwitchTooltip {
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    font-weight: 400;
}

#deleteGalleryTooltip {
    bottom: 95%;
    left: 50%;
    margin-left: -140px;
    font-weight: 400;
    line-height: 1.1rem;
}

.galleryDescription {
    margin-top: 5px;
    width: 100%;
}

.galleryDescription p {
    margin: 0;
    line-height: 1.4;
}

.galleryDescription textarea {
    height: 120px !important;
}

.settingsGalleryCoverPhoto {
    width: 100%;
    height: auto;
}

#changeCoverPhoto {
    width: 750px;
    padding: 15px;
    overflow-y: unset;
    border-radius: 0;
}

#confirmGalleryDelete {
    width: 640px;
    padding: 15px;
    overflow-y: unset;
    border-radius: 0;
}

#gallery_change_cover_photo_cancel {
    float: right;
    margin-right: 5px;
    background-color: #d31414 !important;
    width: 120px;
    padding: 10px;
}

#gallery_change_cover_photo_save {
    float: right;
    background-color: #248724 !important;
    width: 250px;
    padding: 10px;
}

#chnagegallery_picture_tool {
    background-color: #f5f5f5;
}

.createreport_add_pictures_tool_content div {
    transition: opacity 0.3s ease;
}

.uploadPhotoView {
    height: 320px !important;
    width: auto !important;
}

.ownPhotoContent {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.createreport_select_categopry_picture_b {
    margin-right: 0 !important;
    width: 305px !important;
}

#gallerychangePicBtn {
    width: 400px;
    display: none;
}

.adminSettings_profile_pic img {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    object-fit: cover;
}

.adminSettings_profile_pic {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    overflow: hidden;
    flex-shrink: 0;
}

.adminList .userEntry {
    height: 70px !important;
    background-color: var(--railwayfansContentBackground);
    cursor: unset !important;
}

#galleryInvitationBox {
    border-radius: 0;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

#galleryInvitationBoxContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 800px;
}

#galleryInvitationBoxButtons {
    display: flex;
    gap: 10px;
    width: 500px;
}

#galleryDeleteButtons {
    display: flex;
    gap: 10px;
    width: 500px;
    float: right;
    justify-content: flex-end;
}

#galleryFinalDeleteBtn {
    width: 200px;
}

#abortGalleryDelete {
    width: 100px;
}

#gallerySettingsNote {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.galleryTitle {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.galleryPhotoChangeContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Gallery Changes Styles */
.gallery-change-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-change-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gallery-change-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-change-timestamp {
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}

.gallery-change-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery-change-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.gallery-change-photo-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.gallery-change-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    transition: background 0.2s ease;
}

.gallery-change-remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Remove Photo Popup Styles */
#removePhotoPopup {
    overflow-y: unset;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

#removePhotoPopup button {
    padding: 8px 16px;
    min-width: 100px;
}

.remove-photo-preview-container {
    text-align: center;
    margin: 20px 0;
}

.remove-photo-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.remove-photo-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.remove-photo-message {
    margin-top: 15px;
    text-align: center;
    display: none;
}

.remove-photo-message.success {
    display: block;
    color: #248724;
}

.remove-photo-message.error {
    display: block;
    color: #d31414;
}

.profileinfo_content {
    height: 60px !important;
}

.content_container {
    padding-left: 10px;
    padding-right: 10px;
}

#selfExitGalleryFormPC {
    display: block;
}

#selfExitGalleryForm {
    display: none;
}

@media screen and (max-width: 1400px) {
    .rf-inout-v2.longInput {
        width: 100%;
        min-width: none;
    }

    .settingsinput {
        width: 100%;
    }

}

@media screen and (max-width: 1120px) {
    .galleryTitle {
        margin-left: 15px;
    }
}

@media screen and (max-width: 1000px) {
    .settings_section {
        flex-direction: column;
        width: 100%;
    }
    .settingscontainer {
        width: 100%;
    }

    .rf-uploadInputSection {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .galleryTitle {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 600px) {
    .report_category_view_pc {
        display: block !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gallery-change-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-change-timestamp {
        margin-left: 0;
        align-self: flex-end;
    }

    .gallery-change-photos-grid {
        justify-content: center;
    }

    .gallery-change-photo-img {
        width: 100px;
        height: 67px;
    }

    #removePhotoPopup {
        padding: 15px;
        max-width: 95%;
    }

    .remove-photo-preview {
        max-height: 200px;
    }

    .remove-photo-buttons {
        flex-direction: column;
    }

    .remove-photo-buttons button {
        width: 100%;
    }

    #selfExitGalleryFormPC {
        display: none;
    }

    #selfExitGalleryForm {
        display: block;
    }
}

@media screen and (max-width: 500px) {
    .galleryTitle {
        flex-direction: column;
        align-items: center;
    }

    .profileinfo_content {
        height: auto !important;
        flex-direction: column;
        align-items: flex-start;
    }

    .right {
        display: block;
        width: unset;
    }

    .galleryPhotoStats {
        flex-direction: row;
        gap: 5px;
        margin-top: 8px;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .galleryPhotoStats span {
        font-size: unset;
    }

    .left {
        width: unset;
    }

    .galleryTitle {
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .gallery-change-profile-pic {
        width: 32px;
        height: 32px;
    }

    .gallery-change-user-info {
        gap: 8px;
        font-size: 14px;
    }

    .gallery-change-photos-grid {
        gap: 8px;
    }

    .gallery-change-photo-img {
        width: 80px;
        height: 53px;
    }

    #removePhotoPopup {
        padding: 10px;
    }
}