/* --- Base Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body { 
    font-family: 'Inter', Verdana, sans-serif;
    background-color: #e9ebee;
}

/* --- Centered Layout --- */
.main-container {
    max-width: 980px;
    margin: 0 auto;
}

/* --- Header --- */
.myspace-header { 
    background-color: #003399; 
    border-bottom: 2px solid #6699cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- NEW: Navigation Icon Styles --- */
.nav-icon {
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    padding: 0; /* Reset padding for button elements */
}
.nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.nav-icon.owner {
    color: #FFD700; /* Gold color for the owner icon */
}
.nav-icon.owner:hover {
    background-color: rgba(255, 215, 0, 0.15);
}


/* --- Buttons --- */
.btn-classic { 
    background-color: #003399; 
    color: white; 
    border: 1px solid #002266;
    border-radius: 4px;
    font-weight: bold; 
    padding: 6px 12px; 
    cursor: pointer; 
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-classic:hover { 
    background-color: #0044cc;
}
.btn-classic:active {
    transform: translateY(1px);
}
.btn-classic:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    border-color: #808080;
}

/* --- Content Boxes --- */
.content-box {
    background-color: #ffffff;
    border: 1px solid #d3d6db;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.content-box-header {
    background-color: #f5f6f7;
    border-bottom: 1px solid #d3d6db;
    padding: 8px 12px;
    font-weight: bold;
    color: #4b4f56;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.content-box-body {
    padding: 12px;
}

/* --- Form Inputs --- */
.classic-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    background-color: #f5f6f7;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.classic-input:focus {
    outline: none;
    border-color: #003399;
    box-shadow: 0 0 0 2px rgba(0, 51, 153, 0.2);
}

/* --- Message Box with Animation --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeOutUp {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -20px); }
}

#message-box {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    border: none;
}
#message-box.show {
    display: block;
    animation: fadeInDown 0.3s ease-out forwards;
}
#message-box.hide {
    animation: fadeOutUp 0.3s ease-in forwards;
}

/* --- Modals --- */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 95%;
}
.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: bold;
}
.modal-body {
    padding: 1rem;
}

/* --- Skeletons for Loading --- */
.skeleton {
    background-color: #e2e8f0;
    border-radius: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    50% { opacity: .5; }
}
.skeleton-avatar { width: 40px; height: 40px; border-radius: 9999px; }
.skeleton-text { height: 1rem; }
.skeleton-line-short { width: 40%; }
.skeleton-line-long { width: 90%; }

/* --- Lightbox for Photos --- */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-backdrop.show {
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}
.lightbox-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border: 2px solid black;
}

/* --- Cropper.js Styles --- */
.img-container {
    width: 100%;
    height: 384px;
    background-color: #f3f4f6;
}

#cropper-image {
	display: block;
	max-width: 100%;
}
