.messages_counter {
    float: right;
    background: #00AFF0;
    border-radius: 3px;
    padding: 1px;
    padding-right: 3px;
    padding-left: 3px;
    color: #fff;
    margin: 5px;
}

.box-body {
    background-color: #FFF;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    line-height: 140%;
    display: block;
    padding: 10px;
}

.box-body .prompt_header {
    padding: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;;
}

.box-body .choice {
    padding: 0 0 0px;
    height: 28px;
}

.box-body .button_register {
    width: 175px;
    float: left;
    display: block;
}

.box-body .button_login {
    width: 175px;
    float: right;
    display: block;
}

.box-footer {

    border: 1px solid #999;
    border-top: 0;
    display: block;
}

.box-footer .controls {

    padding: 8px 5px;
    background-color: #f2f2f2;
    border-top: 1px solid #dae1e8;
}

.box-footer .controls button {

    font-size: 11px;
    margin-left: 5px;
}

.box-footer .controls button {

    font-size: 11px;
    margin-left: 5px;
}

.box-menu-item {

    display: block;
    height: 42px;
    line-height: 42px;
    color: var(--side_menu_text_color);
    font-weight: bold;
    font-size: 11px;
    padding-left: 20px;
    text-decoration:none
}

.box-menu-item:hover{

    background-color: var(--side_menu_li_hover);
    color: var(--side_menu_text_color_hover);
    text-decoration:none
}

.access-mode-show-on-stream, .access-mode-not-show-on-stream {

    cursor: pointer;
}

.new-post-form-container {

}

.new-post-form-container .card-subtitle {

    font-weight: normal;
    font-size: 13px;
    color: #F76D9B;
}




/* Styles for Blurred "Who Liked Me" Page */
.likes-container {
    position: relative;
}

.blurred-container .standard-page.items-container {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    pointer-events: none; /* Prevents clicking on blurred items */
    opacity: 0.6;
}

.subscribe-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.subscribe-overlay h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.subscribe-overlay p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.subscribe-overlay .btn-primary {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}


/* Styles for Blurred "Guests" Page */
/* --- Subscription Blurring Styles --- */

.cardview-container.items-container {
    position: relative;
    border-radius: .25rem;
    overflow: hidden;
}

.items-view.blurred {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    pointer-events: none; /* Prevents clicking on blurred items */
    user-select: none;   /* Prevents selecting text on blurred items */
}

.subscribe-overlay {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.subscribe-overlay h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.subscribe-overlay p {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* --- New Photo Upload Grid Styles --- */

/* The main grid container */
.photo-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
    grid-template-rows: 1fr 1fr;     /* 2 equal rows */
    grid-gap: 15px;
    margin-top: 15px;

    /* This defines the layout based on the image you sent */
    grid-template-areas:
        "main-slot slot-2 slot-3"
        "slot-4    slot-5 slot-6";
}

/* Base style for all photo slots */
.photo-slot {
    position: relative;
    cursor: pointer;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
    background-size: cover;
    background-position: center;
    overflow: hidden;

    /* Makes the slots square */
    aspect-ratio: 1 / 1;

    /* Center the '+' icon */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    transition: all 0.2s ease;
}

/* Assigning grid areas to specific slots */
.photo-slot[data-slot="1"] { grid-area: main-slot; }
.photo-slot[data-slot="2"] { grid-area: slot-2; }
.photo-slot[data-slot="3"] { grid-area: slot-3; }
.photo-slot[data-slot="4"] { grid-area: slot-4; }
.photo-slot[data-slot="5"] { grid-area: slot-5; }
.photo-slot[data-slot="6"] { grid-area: slot-6; }

/* The main slot is bigger */
.photo-slot[data-slot="1"] {
    /* Main slot is twice as high */
    grid-row: span 2;
    grid-column: span 2;
    aspect-ratio: auto; /* Let it fill the 2x2 space */

    /* Adjust grid layout to 2x2 + 2 small slots if you prefer that */
    /* For the 2x3 layout in your image, let's adjust the grid */
}

/* --- REVISED GRID for your image (2x3 with large top-left) --- */
.photo-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto; /* Two rows */
    grid-gap: 15px;
    margin-top: 15px;

    grid-template-areas:
        "main-slot main-slot slot-2"  /* Main slot takes 2/3 of top row */
        "slot-3    slot-4    slot-5"; /* 3 slots on bottom row */
    /* Note: This is a 5-slot grid. Your image has 6. */
    /* Let's do the 6-slot from your image */
}

/* --- FINAL GRID for your 6-slot image --- */
.photo-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto; /* Two rows */
    grid-gap: 15px;
    margin-top: 15px;

    grid-template-areas:
        "main-slot main-slot slot-2"
        "main-slot main-slot slot-3"  /* Main slot is 2x2 */
        "slot-4    slot-5    slot-6";
    /* This isn't right. Let's simplify. */
}

/* --- FINAL GRID (Simple 2x3 Layout) --- */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 15px;
    margin-top: 15px;
}
.photo-slot:first-child {
    /* The first slot is 2x2 */
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto; /* Let it fill */
}
/* --- End of Grid Layout --- */


/* Style for the placeholder icon/text */
.photo-slot .placeholder {
    font-size: 36px;
    line-height: 1;
}
.photo-slot .placeholder-text {
    font-size: 14px;
    margin-top: 5px;
}

/* Hide placeholder when an image is added */
.photo-slot.has-image .placeholder,
.photo-slot.has-image .placeholder-text {
    display: none;
}

/* Add a visual cue when dragging files over the drop zone */
.photo-upload-grid.dragover {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* Hide the actual file input */
#onboarding-fileupload {
    display: none;
}

/* Chat */

/* --- CHAT INTERFACE STYLES --- */

/* The outer perimeter container */
.chat-input-perimeter {
    border: var(--input_text_border);       /* CHANGED: Uses variable for border */
    border-radius: 20px;
    padding: 10px 15px;
    background-color: var(--input_text_background); /* CHANGED: Uses variable so it adapts to Dark Mode */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-input-perimeter textarea.msg-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    resize: none;
    color: var(--input_text_color) !important; /* CHANGED: Force text color to match theme */
}



/* The textarea itself */
textarea.msg-input {
    resize: none;
    overflow: hidden;
    min-height: 24px;
    max-height: 150px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin-bottom: 5px;
    width: 100%;
    line-height: 20px;
    background: transparent;
    color: var(--input_text_color) !important; /* CHANGED: Added to ensure visibility */
}

/* Ensure the toolbar fits within the perimeter */
.chat-toolbar {
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Allows wrapping on very small screens if needed */
}

/* Addon Buttons (Emoji, etc) */
.chat-addons .smile-button {
    background: transparent !important; /* Remove grey background */
    padding: 5px !important;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-addons .smile-button:hover {
    color: #555;
}

/* Send Button */
.btn-chat-submit {
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-chat-submit i {
    font-size: 16px;
    margin-left: -2px; /* Visual optical adjustment */
    margin-top: 0 !important;
}

/* Fix for the file input overlay */
.image-upload-button {
    position: relative;
    overflow: hidden;
}
