<style>
/* |-----------------------------------------------------------
| BASE & LAYOUT STYLES
|-----------------------------------------------------------
*/
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 900px; /* Kept 900px from your first block */
    margin: 40px auto; /* Centered with top/bottom margin */
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4B0082; /* Indigo */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.main-content {
    padding: 40px;
    text-align: center;
}

/* |-----------------------------------------------------------
| HEADER & NAVIGATION STYLES
|-----------------------------------------------------------
*/
header {
    width: 100%;
    height: 50px;
    color: white;
    text-align: left;
    /* REMOVED font-size: 30px; - Let the children control size */
    background: linear-gradient(to right, #00008B, #4169E1); /* Navy to Royal Blue */
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-right: 20px;
}
header .header-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 50px;
}
header .header-content span.logo-text {
    white-space: nowrap;
    font-size: 30px; /* Explicit size for logo */
    margin-right: 10px;
}

/* Header Links (Applies to all links including dropdown button text) */
header a, .dropbtn {
    color: white;
    text-decoration: none;
    font-size: 20px;
    white-space: nowrap;
    transition: color 0.2s, text-decoration 0.2s;
}
header a:hover, .dropbtn:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* User Info Section (Right aligned) */
.user-info {
    color: white;
    font-size: 18px;
    margin-left: auto; /* Pushes it to the right */
    margin-right: 20px;
    white-space: nowrap;
}
.user-info a {
    font-size: 18px; /* Override the 20px link size */
    margin-left: 10px;
    text-decoration: underline;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    background-color: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00008B;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; /* Ensures it sits above header content */
    border-radius: 5px;
    padding: 10px 0;
    left: 0;
    top: 100%;
}
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 18px;
}
.dropdown-content a:hover {
    background-color: #4169E1;
    text-decoration: none;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* |-----------------------------------------------------------
| GENERAL BUTTON STYLES (Consolidated)
|-----------------------------------------------------------
*/
/* Basic Button Style */

/* Basic Button Style (FIXED) */
.btn {
    /* Shape and Sizing */
    border-radius: 15px;
    padding: 7px 10px;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    
    /* Colors */
    background-color: #F0F8FF; /* AliceBlue */
    color: #00008B;            /* DarkBlue */
    
    /* NEW: Explicitly remove the border */
    border: none; 
    
    /* Transition for smooth hover effect */
    transition: background-color 0.3s ease;
}

/* Hover Effect Style (FIXED) */
.btn:hover {
    background-color: #F0FFFF; /* Azure */
    color: #00008B;            /* Ensure text color remains DarkBlue */
    
    /* CORRECTION: Explicitly remove the border again for safety */
    border: none; 
}


/* Specific Button Overrides */
/* Basic Button Style (FIXED)  .btn-primary */
.btn-primary {
    /* Shape and Sizing */
    border-radius: 15px;
    padding: 7px 10px;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    
    /* Colors */
    background-color: #F0F8FF; /* AliceBlue */
    color: #00008B;            /* DarkBlue */
    
    /* NEW: Explicitly remove the border */
    border: none; 
    
    /* Transition for smooth hover effect */
    transition: background-color 0.3s ease;
}

/* Hover Effect Style (FIXED) */
.btn-primary:hover {
    background-color: #F0FFFF; /* Azure */
    color: #00008B;            /* Ensure text color remains DarkBlue */
    
    /* CORRECTION: Explicitly remove the border again for safety */
    border: none; 
}

.profile-description-box {
    /* --- Border Styles (for the box appearance) --- */
    border: 1px solid #ddd;      /* A subtle, light grey border */
        padding: 15px;               /* Space inside the border, around the text */
    margin-top: 10px;            /* Space above the box, separating it from the "About Me" heading */
    border-radius: 4px;          /* Slightly rounded corners for a modern look */
    background-color:  #F0F8FF; /* AliceBlue */

    /* --- Text Styles --- */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A clear, modern font */
    font-size: 17px;             /* Slightly smaller than default for body text */
    color:  color: #00008B;            /* DarkBlue */
    line-height: 1.6;            /* Good line spacing for reading paragraphs */
}

/* Specific Button Overrides .btn-secondary  */
.btn-secondary  {
    /* Shape and Sizing */
    border-radius: 15px;
    padding: 7px 10px;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    
    /* Colors */
    background-color: #F0F8FF; /* AliceBlue */
    color: #00008B;            /* DarkBlue */
    
    /* NEW: Explicitly remove the border */
    border: none; 
    
    /* Transition for smooth hover effect */
    transition: background-color 0.3s ease;
}

/* Hover Effect Style (FIXED) */
.btn-secondary:hover {
    background-color: #F0FFFF; /* Azure */
    color: #00008B;            /* Ensure text color remains DarkBlue */
    
    /* CORRECTION: Explicitly remove the border again for safety */
    border: none; 
}

/* Specific Button Overrides .btn-secondary */




/* Specific Button Overrides */
/* Re-using base styles for Danger and Info, only setting unique colors if needed */
.btn-danger, .btn-info {
    /* Shape and Sizing */
    border-radius: 15px;
    padding: 7px 10px;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    
    /* Colors */
    background-color: #F0F8FF; /* AliceBlue */
    color: #00008B;            /* DarkBlue */
    
    /* NEW: Explicitly remove the border */
    border: none; 
    
    /* Transition for smooth hover effect */
    transition: background-color 0.3s ease;
}
/* Override the height for inputs ONLY inside the login form container */
.login-form-container .form-control {
    /* Set a standard height for text and password fields (overriding the 150px) */
    height: 40px !important; 
    
    /* Ensure padding is reasonable for the new height */
    padding: 10px; 
    
    /* Remove the 'resize: none;' property that was bleeding over from textarea styles */
    resize: unset !important; 
}

/*
|-----------------------------------------------------------
| FORM CONTROLS (Insert the missing block here)
|-----------------------------------------------------------
*/
.form-group {
    margin-bottom: 15px;
}

/* Base styling for both text inputs and text areas */
.form-control, textarea {
    width: 500px;
    height: 150px;
    padding: 12px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 15px;
    background-color: #fff;
    font-size: 18px;
    resize: none;
    color: #000066;
}

/* FOCUS STYLING FOR 'Brief Description About Yourself' (the textarea) */
/* This also applies to .form-control elements if they are used for other text inputs */
.form-control:focus, 
textarea:focus {
    outline: none; /* Removes the default browser outline */
    border-color: #007bff; /* Changes border color to blue on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Adds a subtle shadow on focus */
}

/* FOCUS STYLING FOR 'Choose File' (the file input) */
input[type="file"]:focus {
    /* Removes the blue focus outline/shadow from the file input */
    outline: none; 
    box-shadow: none;
}
/* Base styling for the file input (when NOT focused) */
input[type="file"] {
    /* Remove the custom border that might be inherited */
    border: none !important; 
    /* Remove any background that might be inherited */
    background-color: transparent !important;
    /* Reset any padding/margin that might be causing a container box */
    
}

/* FOCUS STYLING FOR 'Choose File' (the file input) - Keep this as is */
input[type="file"]:focus {
    /* Removes the blue focus outline/shadow from the file input */
    outline: none; 
    box-shadow: none;
}

/* --- GALLERY SLIDER STYLES --- */

/* Overall container for the gallery section */
.gallery-section {
    padding: 20px 0;
    text-align: center;
}

/* The viewport/window for the slider */
.slider-container {
    position: relative;
    max-width: 700px; /* Max size for the slider view */
    height: 450px; /* Fixed height for consistent display */
    margin: 20px auto;
    border: 5px solid #333; 
    overflow: hidden; /* CRITICAL: Hides images that are off-screen */
    background-color: #000; /* Black background for contrast */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* The wrapper that holds all slides and is translated (moved) horizontally */
.slider-wrapper {
    display: flex; 
    height: 100%;
    /* Smooth transition when moving between slides */
    transition: transform 0.5s ease-in-out;
    /* Ensures the wrapper starts correctly on load */
    transform: translateX(0%); 
}

/* Individual image slide container */
.slider-item {
    min-width: 100%; /* Makes each item take up 100% of the container width */
    height: 100%;
    box-sizing: border-box;
    display: flex; 
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    position: relative;
    flex-shrink: 0; /* Prevents items from squishing */
}

/* The actual image element inside the slide */
.slider-item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    /* Ensures the whole image is visible without cropping */
    object-fit: contain; 
    display: block;
}

/* Navigation buttons (arrows) */
.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 30px; 
    z-index: 10;
    border-radius: 50%; /* Circle buttons */
    transition: background-color 0.2s;
}

.slider-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Positioning the buttons */
#prevBtn { 
    left: 10px; 
}
#nextBtn { 
    right: 10px; 
}

/* Tag for pending images (only visible to owner/admin) */
.pending-tag {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: red; 
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 11;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* Hides the buttons if JavaScript determines sliding is not needed (0 or 1 image) */
.slider-nav-button.hidden {
    display: none;
}

/* |-----------------------------------------------------------
| LIKE & COMMENT STYLES
|-----------------------------------------------------------
*/
.comment-form-section, .comments-list-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.comment-item {
    border-left: 3px solid #ADD8E6; /* Light Blue */
    padding: 10px 15px;
    margin-top: 10px;
    background: #FFF;
    border-radius: 4px;
}
.reply-item {
    margin-left: 30px;
    border-left: 3px solid #ADD8E6; /* Light whiteor blue */
    background: #F5F5F5;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #555;
    font-weight: bold;
}
.like-button  {
    /* Shape and Sizing */
    border-radius: 15px;
    padding: 7px 10px;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    
    /* Colors */
    background-color: #F0F8FF; /* AliceBlue */
    color: #00008B;            /* DarkBlue */
    
    /* NEW: Explicitly remove the border */
    border: none; 
    
    /* Transition for smooth hover effect */
    transition: background-color 0.3s ease;
}

.like-button:hover{
    background-color: #F0FFFF; /* Azure */
    color: #00008B;            /* Ensure text color remains DarkBlue */
    
    /* CORRECTION: Explicitly remove the border again for safety */
    border: none; 
}
.likes-count {
    font-size: 14px;
    color: #6c757d; /* Added missing color from old styles */
}
.like-style-button { /* Special style for blocked users, etc. */
    background-color: #ffc107 !important; /* Yellow */
    color: #333 !important;
    border: 1px solid #ffc107;
}

/* |-----------------------------------------------------------
| PROFILE & COMMENT IMAGE STYLES
|-----------------------------------------------------------
*/
.profile-picture-container {
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture-container img.profile-picture {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    /* Added back default styling for the main profile picture */
    border: 5px solid #fff; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.comment-item img {
    max-width: 100px; /* Reduced from 300px back to 100px for thumbnail size */
    max-height: 100px; /* Reduced from 300px back to 100px for thumbnail size */
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 5px; /* Added spacing */
    cursor: pointer;
    object-fit: cover;
}

/* |-----------------------------------------------------------
| GALLERY & MODAL STYLES (Gallery comments corrected)
|-----------------------------------------------------------
*/
/* CORRECTED: The previous block had missing closing comment tags (*/) */
.gallery-main-image-container {
    /* Sets the max size for the main display */
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    /* Forces a 16:9 aspect ratio for the main image area */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}
.gallery-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid;
    border-color: #d1d5db;
}
.gallery-thumbnail.active {
    opacity: 1.0;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px #3b82f640;
}


/* --- General Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- Image Modal (Lightbox) --- */
#imageModal {
    display: none; /* MUST be hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Changed to dark background for better image display */
    /* Removed conflicting 'display: flex' - JS handles showing it */
    justify-content: center;
    align-items: center;
}
/* Class to show the image modal via JS */
#imageModal.show {
    display: flex;
}

#imageModal-content {
    margin: auto;
    display: block;
    /* This rule ensures the enlarged image is 600px wide maximum */
    max-width: 1000px; 
    width: 90%; /* Scale down on small screens */
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
/* Ensure the image inside the content container fills it */
#imageModal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.image-close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.image-close-btn:hover, .image-close-btn:focus {
    color: #bbb;
    text-decoration: none;
}


/* --- Message Modal --- */
.message-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.message-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}
.message-modal-content h3 {
    margin-top: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .wrapper {
        padding: 10px;
        margin: 10px auto;
    }
    .header-content {
        padding-left: 10px;
        gap: 10px;
    }
    header .header-content span.logo-text {
        font-size: 24px;
    }
    header a, .dropbtn {
        font-size: 16px;
    }
    .user-info {
        font-size: 14px;
    }
}
</style>