/* Custom CSS Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Add padding to the top to account for the fixed header */
    padding-top: 70px;
}

/* Fixed navbar styling */
.navbar.fixed-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1030;
}

/* Add a transition effect when scrolling */
.navbar.fixed-top.scrolled {
    background-color: rgba(13, 110, 253, 0.98) !important;
    transition: background-color 200ms linear;
}

/* Special styling for vasita.eu link at the end of the navbar */
.navbar-nav li:last-child .nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    margin-left: 5px;
}

/* Additional hover effect for the vasita.eu link */
.navbar-nav li:last-child .nav-link:hover {
    color: #fff;
    text-decoration: underline;
}

footer {
    margin-top: auto;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.group-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Post styling */
.post {
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
    margin-bottom: 20px;
    background-color: #fff;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

.post-author {
    font-weight: bold;
}

.post-time {
    font-size: 0.875rem;
    color: #777;
}

.post-content {
    padding: 15px;
    white-space: pre-wrap;
}

.post-image img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

/* Image upload preview */
#imagePreviewContainer {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

#imagePreview {
    max-height: 200px;
    width: auto;
    display: block;
    margin: 0 auto;
}

#removeImage {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Add Bootstrap icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");
