.navbar {
    background: linear-gradient(135deg, #ff6b81, #ff7e5f);
    padding: 0.625rem 1rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.navbar-custom-spacing {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.btn-nav-auth {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ff6b81, #ff7e5f) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-nav-auth:hover {
    color: white !important;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.nav-item-auth {
    margin-left: 0.75rem;
}

/* --- Stories Navigation --- */
.stories-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 5px;
    scrollbar-width: none;
    flex-grow: 1;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b81, #ff7e5f) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
    padding: 2px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.avatar-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: block;
}

/* --- Offcanvas Menu Styling --- */

#userOffcanvas {
    width: 280px !important; 
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 10px;
    background-color: #fdfbfb;
    background-image: 
        radial-gradient(at 100% 100%, #ffe082 0px, transparent 50%),
        radial-gradient(at 0% 0%, #fff9c4 0px, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,248,225,0.8) 100%);
    background-blend-mode: overlay;
}

#userOffcanvas .offcanvas-body .nav-link {
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 10px 15px !important;
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
}

#userOffcanvas .offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--brand-color);
}

.menu-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ff7e5f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7e5f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.menu-btn:hover {
    background: linear-gradient(135deg, #ff6b81, #ff7e5f);
    color: #fff;
    border-color: transparent;
}

/* --- UI Custom Colors --- */
.text-pink-dudik {
    color: var(--text-pink) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}

.text-pink-dudik:hover {
    color: var(--text-pink-hover) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Custom Auth Forms Styles */
.form-control-rounded {
    border-radius: 50px !important;
    padding: 0.6rem 1.2rem !important;
    border: 1px solid #ced4da;
}
.btn-rounded-gradient {
    border-radius: 50px !important;
    padding: 0.6rem 2rem !important;
    background: var(--btn-gradient-primary);
    color: white;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.btn-rounded-gradient:hover {
    background: linear-gradient(90deg, #feb47b, #ff7e5f);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-gradient-animated {
    padding: 0.6rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ff6b81, #ff7e5f) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
}
.btn-gradient-animated:hover {
    color: white !important;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Gradient Buttons (Preserving original colors) */
.btn-gradient-success {
    background: linear-gradient(to right, #157347, #28a745) !important;
    color: white !important;
    border: none;
    border-radius: 50px !important;
    padding: 0.6rem 2rem !important;
    transition: all 0.3s;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.btn-gradient-success:hover {
    filter: brightness(1.1);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.3);
}

.btn-gradient-danger {
    background: linear-gradient(to right, #b02a37, #e32727) !important;
    color: white !important;
    border: none;
    border-radius: 50px !important;
    padding: 0.6rem 2rem !important;
    transition: all 0.3s;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.btn-gradient-danger:hover {
    filter: brightness(1.1);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

/* Кнопка видалення для інпутів */
.input-group-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.remove-btn {
    position: absolute;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.remove-btn:hover {
    background: #e65a6f;
}

.text-like {
    color: #ff7e5f !important;
}

.auth-page-header {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #000;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
/* --- Стилізація Telegram-style коментарів --- */

.comment-container { margin-bottom: 1rem; }
.comment-avatar { width: 40px !important; height: 40px !important; object-fit: cover; margin-top: 5px; }
.comment-card { position: relative; font-size: 0.9rem; border-radius: 1rem !important; overflow: visible !important; }
.comment-card::before { content: ''; position: absolute; top: 15px; left: -8px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 8px solid #ffffff; z-index: 10; }
.comment-card::after { content: ''; position: absolute; top: 14px; left: -9px; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 9px solid #dee2e6; z-index: 9; }
.comment-card .card-body { padding: 0.75rem !important; }
.comment-image { max-height: 250px !important; border-radius: 0.75rem !important; }
.comment-text { color: #333; }

/* Стилізація пагінації - овал та градієнти */
.pagination {
    --bs-pagination-border-radius: 50px;
}

.pagination .page-link {
    color: #ff7e5f !important;
    border: 1px solid #ff7e5f !important;
    background-color: #fff !important;
    border-radius: 50px !important;
    margin: 0 3px;
    padding: 0.4rem 0.9rem;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff6b81, #ff7e5f) !important;
    border-color: #ff7e5f !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(255, 110, 129, 0.3);
}

.pagination .page-link:hover {
    background-color: #fff5f6 !important;
    color: #e32727 !important;
}
