@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* ================= LOADER ================= */

body.loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity .3s ease, visibility .3s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    max-width: 120px;
    height: auto;
}

/* ================= LAYOUT ================= */

/* Top alert */
.top-alert {
    background: #0f172a;
    padding: 6px 0;
    font-size: 13px;
}

/* Navbar below alert */
.main-navbar {
    top: 34px;
}

/* Main content offset (alert + navbar) */
.main-content {
    margin-top: 90px; /* ✔ FIXED */
}

/* ================= NAVBAR ================= */

.navbar .nav-link {
    color: #1f2937;
}

.navbar .nav-link:hover {
    color: #3f5efb;
}

.navbar input.form-control {
    width: 200px;
}

.badge {
    font-size: 11px;
}

/* ================= PRODUCT CARDS ================= */

.product-card {
    border-radius: 12px;
}

.product-img-wrapper {
    padding: 12px;
    background: #fff;
}

.product-img-wrapper img {
    height: 220px;
    width: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price span {
    font-size: 15px;
}

.product-card .btn {
    border-radius: 8px;
}

/* ================= EXAM CARDS ================= */

.exam-card {
    border-radius: 14px;
    padding: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.exam-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* ================= FOOTER ================= */

.app-footer {
    background: #063F6C;
    color: #fff;
    padding: 6px 0;
    font-size: 12px;
    z-index: 1030;
}

.footer-text {
    white-space: nowrap;
}

.footer-social a {
    color: #ffffff;
    font-size: 16px;
    transition: transform .2s ease, color .2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.footer-social .bi-whatsapp:hover {
    color: #25D366;
}

.footer-social .bi-youtube:hover {
    color: #FF0000;
}

.footer-social .bi-instagram:hover {
    color: #E4405F;
}

.footer-link {
    color: #dbeafe;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Prevent footer overlap */
body {
    padding-bottom: 42px;
}
/* Product Badges */
.badge-bestseller {
    background: linear-gradient(135deg, #ff512f, #f09819);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 8px;
}

.badge-new {
    background: #0d6efd;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 8px;
}

.badge-discount {
    background: #198754;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 8px;
}
.badge-rank {
    background: linear-gradient(135deg, #ff512f, #f09819);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 8px;
}


