html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6fa;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid #e8eaf0;
    margin-bottom: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: transform 0.3s ease;
}

    .user-avatar:hover {
        transform: scale(1.1) rotate(5deg);
    }

.user-info {
    flex: 1;
}

.user-role {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-title {
    font-size: 0.7rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0 0.5rem;
    margin-bottom: 0.8rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #5a6c7d;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .menu-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .menu-item:hover {
        background: #f0f4ff;
        color: #0d6efd;
        transform: translateX(5px);
    }

        .menu-item:hover::before {
            transform: scaleY(1);
        }

    .menu-item.active {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        color: #0d6efd;
        font-weight: 600;
    }

        .menu-item.active::before {
            transform: scaleY(1);
        }

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.menu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-arrow {
    transform: translateX(3px);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 3rem;
}

    .submenu.open {
        max-height: 300px;
        margin-top: 0.5rem;
    }

.submenu-item {
    display: block;
    padding: 0.6rem 1rem;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.2rem;
}

    .submenu-item:hover {
        background: #f8f9fa;
        color: #0d6efd;
        transform: translateX(5px);
    }

.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: shimmer 3s infinite;
    text-decoration: none;
}



@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    }
}

.premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    color: #000;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e8eaf0;
}

.logout-btn {
    width: 100%;
    padding: 0.8rem;
    background: #fee;
    color: #dc3545;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .logout-btn:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.btn-login {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
        color: white;
    }

.btn-register {
    background: white;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

    .btn-register:hover {
        background: #0d6efd;
        color: white;
        transform: translateY(-2px);
    }

main {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 100%;
    padding: 0;
}

.toggle-sidebar {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    main {
        margin-left: 0;
    }

    .container {
        margin-left: 0;
    }

    .toggle-sidebar {
        display: block;
    }

    .footer {
        margin-left: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.footer {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    padding: 1rem;
}

