body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1;
}
.alert-dismissible {
    position: relative;
}
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.profile-header {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.footer {
    background-color: #343a40;
    color: white;
    padding: 25px 0;
    margin-top: 30px;
}

/* Search Styles */
.search-container {
    position: relative;
    width: 350px;
    transition: all 0.3s ease;
}

/* Search Results Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    animation: fadeInDown 0.3s ease-out;
}

.input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-icon-wrapper {
    background-color: #fff;
    border: none;
    border-right: none;
    padding-left: 15px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.search-icon-wrapper i {
    transition: transform 0.3s ease;
}

.input-group:focus-within .search-icon-wrapper {
    color: #007bff;
}

.input-group:focus-within .search-icon-wrapper i {
    transform: scale(1.1);
}

.search-input {
    border: none;
    padding-left: 5px;
    border-left: none;
    background-color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
    transition: all 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #f1f1f1;
    transition: all 0.2s;
}

.search-result-item:hover .search-result-img {
    border-color: #007bff;
}

.search-result-info {
    flex: 1;
}

.search-result-username {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 2px;
}

.search-result-name {
    font-size: 0.85rem;
    color: #6c757d;
}

.search-result-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 992px) {
    .search-container {
        width: 100%;
        margin: 12px 0;
    }
}

/* Fix mobile header and bottom navigation positioning */
@media (max-width: 1199.98px) {
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background-color: #212529; /* Bootstrap dark background */
        padding: 0.5rem 0;
        z-index: 9999;
    }
    body {
        padding-top: 56px; /* space for fixed mobile header */
        padding-bottom: 56px; /* space for fixed bottom nav */
    }
    .mobile-bottom-nav a {
        color: #fff;
        flex: 1;
        text-align: center;
    }
    /* Color mobile post icon like desktop success */
    .mobile-bottom-nav a[data-bs-target="#postModal"] i {
        color: var(--bs-success) !important;
    }
    /* Enlarge mobile post button */
    .mobile-bottom-nav a[data-bs-target="#postModal"] {
        padding: 0.75rem 0 !important;
    }
    .mobile-bottom-nav a[data-bs-target="#postModal"] i {
        font-size: 1.8rem !important;
    }
    /* Expand mobile post nav container width */
    .mobile-bottom-nav a[data-bs-target="#postModal"] {
        flex: 0 0 50px !important;
    }
}

/* Desktop header fixed and body offset */
@media (min-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
    }
    body {
        padding-top: 64px; /* height of desktop header */
    }
} 