:root {
    --primary-color: #ff6f61;
    /* Living Coral */
    --primary-hover: #e05548;
    --secondary-color: #ffb7b2;
    /* Soft Pink */
    --accent-color: #ffd166;
    /* Sunny Yellow/Gold */
    --bg-color: #fafafa;
    /* Very light grey/white */
    --text-color: #4a4a4a;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.6rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 24px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.btn-gold {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    border: none;
}

.btn-gold:hover {
    background-color: #ffc107;
    color: #fff;
}

/* General Chat Styles */
.general-chat-container {
    max-height: 400px;
    overflow-y: auto;
}

.general-chat-message {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.general-chat-message:hover {
    background-color: #f8f9fa;
}

.general-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.general-chat-avatar:hover {
    opacity: 0.8;
}

.general-chat-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    overflow-x: auto;
}

.general-chat-page-btn {
    min-width: 35px;
    height: 35px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.general-chat-page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.general-chat-page-btn:hover:not(.active) {
    background: #f0f0f0;
}

.general-chat-send-form textarea {
    resize: none;
}

.cooldown-timer {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: bold;
}

/* Mobile Responsiveness for General Chat */
@media (max-width: 768px) {
    .general-chat-container {
        max-height: 350px;
    }

    .general-chat-pagination {
        font-size: 0.85rem;
    }

    .general-chat-page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .general-chat-avatar {
        width: 35px;
        height: 35px;
    }

    .general-chat-message {
        padding: 8px;
    }
}

/* Mobile Responsiveness for Navbar and Chat */
@media (max-width: 768px) {

    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar .ms-auto {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .navbar .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Credits display on mobile */
    .navbar .rounded-pill.bg-white {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.85rem;
    }

    /* Chat box height adjustment */
    .chat-box {
        height: 55vh !important;
    }

    /* Message bubbles */
    .msg-bubble {
        max-width: 85%;
        font-size: 0.9rem;
    }

    /* Navbar brand */
    .navbar-brand {
        font-size: 1.2rem !important;
    }

    /* Profile cards on mobile */
    .profile-img {
        height: 250px;
    }
}


.btn-gradient {
    background: linear-gradient(45deg, #ff6f61, #ffd166);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
    color: white;
}

/* Forms */
.form-control {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 97, 0.15);
}

/* Online Indicator */
.online-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 2.5px solid #fff;
    z-index: 10;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
    }

    50% {
        box-shadow: 0 0 12px rgba(46, 204, 113, 0.9);
    }
}

/* Cards */
.profile-card {
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

/* Images */
.profile-img {
    height: 320px;
    object-fit: cover;
    width: 100%;
    object-position: top;
}

/* Notifications */
.notif-unread {
    background-color: #fff0ef;
    /* Very light red tint */
    font-weight: bold;
}

.blur-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.notif-read {
    background-color: #fff;
    color: #888;
}

/* Animations */
@keyframes pop-gift {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.gift-popup-icon {
    font-size: 5rem;
    animation: pop-gift 0.6s ease-out forwards;
}