:root {
    --primary-color: #ffffff;
    --secondary-color: #92272a;
    --light-color: #ffffff;
    --outline-primary-color: #ffffff;
    --bg-card-item: rgba(255, 255, 255, 0.1);
    --text-color: #fff;
}

body {
    font-family: "Poppins", "sans-serif";
    color: var(--text-color);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

main {
    background-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn {
    border-radius: 50rem !important;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--outline-primary-color) !important;
    border-color: var(--outline-primary-color) !important;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
        border-color 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--outline-primary-color) !important;
    color: var(--secondary-color) !important;
}

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color);
}

.friend-container {
    color: var(--text-color);
    border-radius: 1rem;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    scroll-behavior: smooth;
    align-items: stretch;
}

.friend-container::-webkit-scrollbar {
    height: 8px;
    cursor: pointer;
}

.friend-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

.friend-card {
    flex: 0 0 80px;
    width: 80px;
    background-color: var(--bg-card-item);
    border-radius: 1rem;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend-card a:last-child {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.friend-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #7c8cff;
    /* margin-bottom: 10px; */
}

.promo-card {
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 0px !important;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

    flex: 0 0 auto;
    width: calc((100% - 16px) / 3);
    min-width: calc((100% - 16px) / 3);
}

.promo-thumb {
    margin-top: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.promo-media {
    display: block !important;
    width: 100%;
}

.promo-card img {
    display: block;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    object-fit: contain !important;
}

/* Override .promo-meta dari blade */
.promo-card .promo-meta {
    flex: 0 0 auto !important; /* ← jangan stretch */
    width: 100%;
    padding: 2px 4px 4px !important;
    gap: 4px !important;
}

.promo-card .promo-meta-discount {
    justify-content: center !important;
    height: auto !important;
    gap: 4px !important;
}

/* Override .promo-price-box dari blade */
.promo-card .promo-price-box {
    flex: 0 0 auto !important; /* ← jangan stretch */
    padding: 2px 0;
}

.promo-buy-btn {
    margin-top: 2px !important;
    height: 26px !important;
    font-size: 11px !important;
    padding: 4px 0 !important;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: var(--secondary-color);
    z-index: 999;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.custom-input {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 25px 20px;
    height: 45px;
    font-size: 14px;
    font-weight: 400;
}

.custom-input:disabled {
    background-color: rgba(255, 255, 255, 0.5);
}

.custom-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid #fff;
    color: var(--text-color);
    box-shadow: none;
}
.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}
.input-group-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
    position: absolute;
    right: 10px;
    height: 100%;
    z-index: 99;
}
.input-group {
    margin-bottom: 15px;
}

.main-content {
    min-height: 100vh;
    padding-top: 20px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo img {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.logo:hover img,
.logo:focus img {
    filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 18px #ffaa00cc);
    transform: scale(1.06);
}

.logo:active img {
    filter: drop-shadow(0 0 4px #ffd700) drop-shadow(0 0 10px #ffaa00cc);
    transform: scale(0.98);
}

.logo .sidebar-brand {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover .sidebar-brand,
.logo:focus .sidebar-brand {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700aa, 0 0 22px #ffaa0066;
}

.badge-basic {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    color: #dc2626;
    padding: 3px 6px;
    border: solid 1px #dc2626;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
}
