body { margin: 0; padding: 0; background-color: #000;}
html, body { height: 100%;}
a{ text-decoration: none; color: inherit;}
button:hover{cursor: pointer;}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}
#map.fade /*, #poi-popup.fade, #reviews-bottom-sheet.fade*/ {opacity: 0.8;}
.maplibregl-ctrl-bottom-right {display: none;}
.maplibregl-ctrl-top-right {top: 46%;z-index:10}
.text-red-500{ color: rgb(105, 0, 0); }
.text-green-500{ color: rgb(0, 105, 0); }
.ml-2{ padding-left: 0.4em; }
.poi-popup {
    position: fixed;
    bottom: 0;
    /*padding-bottom: 1em;*/
    min-width: 48%;
    max-width: 1000px;
    max-height: 56vh;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 1;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
}

.poi-popup.visible {
    transform: translateX(-50%) translateY(0); /*-20%*/
    opacity: 1;
    z-index: 20;
}

/* Login Modal */
.vending-machine {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    border: 8px solid #333;
    font-family: 'Courier New', monospace;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vending-machine.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.machine-top {
    background: #333;
    padding: 15px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #222;
}

.machine-screen {
    background: #000;
    border: 4px solid #555;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 2em;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    font-family: 'Digital', 'Courier New', monospace;
}

.machine-subtitle {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: #0f0;
    letter-spacing: 1px;
}

.machine-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8c1a1a;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.machine-body {
    padding: 1.5em 2em 0.5em 2em;
    background: #f5f5f5;
}

.machine-message {
    text-align: center;
    margin: 0 0 15px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.selection-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-select {
    background: #4a90e2;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-select.active {
    background: #2c6cb3;
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vending-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.input-label {
    width: 100px;
    font-weight: bold;
    color: #2a2a2a;
    font-size: 0.9rem;
}

.vending-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #999;
    border-radius: 5px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.vending-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.forgot-link {
    color: #4a90e2;
    text-decoration: none;
    /*font-size: 0.8rem;*/
    font-weight: bold;
}

.btn-vending {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-login {
    background: #4CAF50;
    color: white;
}

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

.social-buttons {
    text-align: center;
    margin: 2em 0;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin: 0 0.5em;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/*.google { background: #DB4437; }*/
.facebook { background: #4267B2; }

/* Form elements */
.poi-popup-login .form-group {
    margin-bottom: 1rem;
}

.poi-popup-login .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.poi-popup-login .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.poi-popup-login .form-control:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Buttons */
.poi-popup-login .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.poi-popup-login .btn-primary {
    background-color: #4a90e2;
    color: white;
}

.poi-popup-login .btn-primary:hover {
    background-color: #3a7bc8;
}

.poi-popup-login .btn-outline-secondary,
.poi-popup-login .btn-outline-primary {
    background: white;
}

.poi-popup-login .btn-outline-secondary {
    border-color: #ddd;
    color: #333;
}

.poi-popup-login .btn-outline-primary {
    border-color: #4a90e2;
    color: #4a90e2;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
}

.divider span {
    position: relative;
    top: -0.8em;
    padding: 0 1rem;
    color: #777;
    font-size: 0.875rem;
    background: white;
}

/* Social buttons */
.social-login-buttons .btn {
    margin-bottom: 0.75rem;
}

.social-login-buttons .btn img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.social-login-buttons svg{
    width: 14%;
}

/* Links */
.poi-popup-login a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s;
}

.poi-popup-login a:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .poi-popup-login {
        width: 90%;
        max-width: none;
    }
}

/* Overlay when login modal is visible */
.poi-popup-overlay.visible {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.poi-popup-login.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
}

.poi-popup-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poi-popup-title {
    margin: 8px 0 4px;
    font-size: 1.4em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.poi-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    line-height: 1;
}

.poi-header-meta {
    display: flex;
    gap: 4em;
    /*display: contents;*/
}

.poi-popup-content {
    padding: 16px;
    overflow-y: hidden;
    max-height: calc(60vh - 57px); /* Adjust based on header height */
}

/*.poi-popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}*/

.poi-reviews{
    cursor: pointer;
}

.poi-popup-tags{
    margin: 0 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
}
.poi-tag{
    background-color: #f1f3f4;
    border-radius: 1em;
    font-size: 0.9em;
    padding: 0.3em;
}

.poi-popup-description {
    color: #495057;
    font-size: 1.3em;
    line-height: 1.5;
}

.poi-popup-details {
    font-size: 1.3em;
    color: #6c757d;
    margin: 8px 0;
}

.poi-popup-link {
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.poi-popup-link:hover {
    text-decoration: underline;
}

.poi-opening-hours {
    margin: 12px 0;
    overflow: scroll;
    max-height: 8em;
}

.opening-hours-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opening-hour-item {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
}

.opening-hour-item.today {
    background-color: rgba(34, 197, 94, 0.1);
    font-weight: 500;
}

.status-open {
    color: #22c55e;
    font-weight: bold;
    margin-left: 4px;
}

.status-closed {
    color: #ef4444;
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.85em;
}

.status-open {
    color: #22c55e;
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.85em;
}

.opening-hour-item:last-child {
    border-bottom: none;
}

.opening-day {
    font-weight: 500;
    color: #444;
    min-width: 120px;
}

.opening-time {
    color: #666;
    text-align: right;
}

.poi-details.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.poi-details-content {
    padding: 20px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

.poi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    /*padding-bottom: 10px;
    border-bottom: 1px solid #eee;*/
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.filter-group {
    font: 1em/3em 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: 600;
    position: absolute;
    top: 4em;
    right: 4em;
    z-index: 1;
    border-radius: 3px;
    width: 16em;
    color: #fff;
}

.poi-image{
    display: flex;
    justify-content: center;
}
.poi-image img{
    border-radius: 8px;
    max-width: 100%;
    max-height: 20vh;
}
.poi-copy-btn {
    vertical-align: middle;
    font-size: 0.8em;
    border: none;
    background: none;
    cursor: pointer;
}

.filter-group input[type='checkbox']:first-child + label {
    border-radius: 3px 3px 0 0;
}

.filter-group label:last-child {
    border-radius: 0 0 3px 3px;
    border: none;
}

.filter-group input[type='checkbox'] {
    display: none;
}

.filter-group input[type='checkbox'] + label {
    background-color: #3386c0;
    display: block;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.filter-group input[type='checkbox'] + label {
    background-color: #3386c0;
    text-transform: capitalize;
    margin-right: 5px;
}

.filter-group input[type='checkbox'] + label:hover,
.filter-group input[type='checkbox']:checked + label {
    background-color: #4ea0da;
}

.filter-group input[type='checkbox']:checked + label:before {
    content: '✔';
    margin-right: 5px;
}
/*.maplibregl-ctrl-zoom-out,  {
    background-color: white;
}*/
@media (min-width: 900px) {
    .maplibregl-ctrl, .maplibregl-ctrl-group, .maplibregl-ctrl button, .maplibregl-ctrl-icon {
        font-size: 2rem !important;
        width: 52px !important;
        /*height: 52px !important;*/
        min-width: 52px !important;
        min-height: 52px !important;
    }
    .maplibregl-ctrl button svg,
    .maplibregl-ctrl-icon span {
        width: 2em !important;
        height: 2em !important;
    }
}

/* Category Filter Styles */
#category-filter-toggle{
    width: 1.8em; height: 1.8em; border-radius: 50%;
    background-color: white; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px; cursor: pointer; border: none; outline: none;
}
#category-filter-toggle:hover {background-color: rgb(235, 235, 235);}
.category-filter-panel {
    position: absolute;
    right: 24px;
    bottom: 32px;
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    z-index: 300;
    padding: 10px 12px;
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#category-filter{
    position: absolute; bottom: 1rem; right: 1rem; z-index: 1000;
}
#category-filter-list{
    position: absolute; bottom: 1rem; right: 2.2rem; background-color: white; border-radius: 8px; padding: 0.2rem; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px; display: none; flex-direction: column; gap: 0.2rem; max-height: 24vh; overflow-y: auto;min-width: 11em;
}

.category-filter-list.hidden {
    display: none;
}

#login-modal.visible{
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    animation: fadeIn 0.3s ease-in-out;
}

/* POI Search Styles */
.poi-search-panel {
    position: absolute;
    top: 2em;
    left: 44%; /*2em;*/
    bottom: auto;
    z-index: 300;
    width: 100%;
    min-width: 5em;
    max-width: 24em;
    background: white;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    box-shadow: 3px 3px 0px 0px rgba(79, 70, 229, 0.4);
    overflow: hidden;
}

/* Status indicator styles */
.status-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    gap: 0.3rem;
}

.status-open {
    color: #15803d;
}

.status-closed {
    color: #b91c1c;
}

.status-unknown {
    color: #6b7280;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-open .status-dot {
    background-color: #16a34a;
}

.status-closed .status-dot {
    background-color: #dc2626;
}

.status-unknown .status-dot {
    background-color: #6b7280;
}

.search-container {
    display: flex;
    position: relative;
}

#poi-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #4f46e5;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#poi-search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #4338ca;
}

.search-icon, .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 0.95rem;
}

.search-result-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.reviews-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.reviews-bottom-sheet.visible {
    bottom: 0;
}

#reviews-bottom-sheet{
    transform: translateX(-50%) translateY(20%);
    width: 100%;
    max-height: 40vh;
}

.reviews-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.reviews-content {
    padding: 0.6em 0.7em;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 7vh;
}

.review-item {
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}
.review-item:last-child {border-bottom: none;}

.review-header {
    display: flex;
    align-items: center;
    margin: 0.8em 0;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.review-user {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    margin-right: 10px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.review-rating {
    color: #ffc107;
    /*font-size: 14px;*/
    white-space: nowrap;
}

.review-date {
    color: #4d4d4d;
    /*font-size: 12px;*/
    white-space: nowrap;
}

.review-text {
    margin-top: 8px;
    line-height: 1.5;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.review-text, .review-images {margin-left:0.6em;}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.review-text {
    margin-top: 8px;
    line-height: 1.5;
}

.review-text, .review-images {padding-left:0.5em;}

.loading-reviews {
    text-align: center;
    padding: 20px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.maplibregl-marker{z-index: 10;}
.maplibregl-user-location-accuracy-circle{z-index: 9;}

@media (min-width:1200px) {
    #category-filter{
        zoom: 1.2;
    }
}
@media (min-width:1600px) {
    #category-filter{
        zoom: 1.3;
    }
}
@media (min-width:1800px) {
    #category-filter{
        zoom: 1.4;
    }
}
@media (min-width:2000px) {
    #category-filter{
        zoom: 1.5;
    }
}


@media (max-width:1024px) {
    .poi-popup{
        min-width: 100%;
        font-size: 1em;
    }
    .poi-title{
        font-size: 1.1em;
    }
}

@media (max-width: 600px) {
    .poi-search-panel {
        top: 0.5em;
        left: 0.5em;
    }
    .poi-popup{
        min-width: 100%;
        font-size: 0.8em;
    }
    .poi-title{
        font-size: 0.9em;
    }
    .poi-popup-header{
        padding: 4px 6px;
    }
    .category-filter-panel {
        right: 8px;
        left: 8px;
        bottom: 12px;
        min-width: unset;
        max-width: unset;
        padding: 8px 4px;
    }
    #category-filter-toggle{
        width: 1.2em;
        height: 1.2em;
    }
}

/* Comment Form Styles */
.add-comment-container {
    margin: 1rem 0;
}

.add-comment-container > button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.add-comment-form {
    padding: 1.25rem;
    background-color: #e0dbff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.add-comment-form[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.image-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.image-upload-label:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.image-upload-label i {
    margin-right: 6px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview:hover .remove-image {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .image-preview {
        width: 60px;
        height: 60px;
    }

    .image-upload-label {
        font-size: 0.9em;
        padding: 4px 8px;
    }
}

.image-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.2s;
}

.image-upload-label:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.image-upload-label i {
    margin-right: 0.5rem;
    color: #4f46e5;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.image-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

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

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.remove-image:hover {
    background: rgba(220, 38, 38, 0.8);
}

.add-comment-form .form-group {
    margin-bottom: 0.5rem;
}

.add-comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.9em;
}

.add-comment-form .form-actions {
    display: flex;
    justify-content: center;
    gap: 3.75rem;
    margin-top: 1rem;
    align-items: center;
}

.add-comment-form .btn-primary {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
}
.add-comment-form .btn-primary.btn-link {
    background-color: #404447;
}
.add-comment-container > button:hover, .add-comment-form .btn-primary:hover {
    background-color: #4338ca;
}

.login-prompt {
    margin: 1rem 0;
    text-align: center;
}

.login-prompt .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.login-prompt .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.login-prompt .btn-link:hover {
    text-decoration: underline;
}
