
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: var(--nav-height);
    position: relative;
}

.header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    font-size: 1.5rem;
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--nav-height) - 60px);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    z-index: 100;
}

.bottom-nav ul {
    display: flex;
    list-style: none;
    width: 100%;
    max-width: 500px;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--light-text);
    font-size: 0.8rem;
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active i {
    color: var(--primary-color);
}

.nav-link:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.message-badge {
    position: absolute;
    top: 5px;
    right: 25%;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .content {
        padding: 30px;
    }

    .logo {
        font-size: 2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .nav-link i {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        left: auto;
        width: 500px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        bottom: 20px;
        box-shadow: var(--shadow);
    }
}

.request-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;  /* Ensure it's always visible */
}
.nav-item {
    position: relative;
}
