/**
 * CSIR-SCDD Application Portal — Responsive
 */

@media (max-width: 991.98px) {
    .header-content {
        min-height: 88px;
        gap: 8px;
    }
    .header-left,
    .header-right {
        width: 72px;
    }
    .header-logo-img {
        width: 64px;
        max-height: 64px;
    }
    .header-title {
        font-size: 1rem;
    }
    .header-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    body {
        background:
            radial-gradient(ellipse 100% 30% at 50% 0%, rgba(30, 74, 122, 0.1), transparent 55%),
            var(--paper);
    }

    .portal-header {
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: nowrap;
        min-height: 72px;
        padding: 0 10px;
    }

    .header-left,
    .header-right {
        width: 52px;
    }

    .header-logo-img {
        width: 48px;
        max-height: 48px;
    }

    .header-title {
        font-size: 0.82rem;
        margin-bottom: 2px;
    }

    .header-subtitle {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .header-brand-tag {
        font-size: 0.58rem;
        margin-top: 4px;
        letter-spacing: 0.08em;
    }

    .notice-marquee {
        padding: 8px 0;
    }

    .notice-marquee marquee {
        font-size: 0.82rem;
    }

    .auth-shell {
        padding: 20px 12px 36px;
    }

    .auth-intro h2 {
        font-size: 1.2rem;
    }

    .auth-intro p {
        font-size: 0.88rem;
    }

    .card {
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .card-header h4,
    .card-header h5 {
        font-size: 1.05rem;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .btn-lg {
        width: 100%;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .sidebar-nav .list-group-item {
        font-size: 0.88rem;
        padding: 10px 12px;
    }

    .table {
        font-size: 0.82rem;
    }

    .upload-area {
        min-height: 140px;
        padding: 18px;
    }

    .portal-footer {
        text-align: center;
        padding: 14px 0;
        font-size: 0.78rem;
    }

    .portal-footer .text-end {
        text-align: center !important;
        margin-top: 8px;
    }

    .app-page-banner .inner {
        padding: 10px 12px;
    }

    .section-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .header-left {
        display: none;
    }

    .header-right {
        width: 44px;
    }

    .header-logo-img {
        width: 40px;
        max-height: 40px;
    }

    .header-title {
        font-size: 0.78rem;
    }

    .header-center {
        text-align: left;
        padding-right: 4px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .header-title {
        font-size: 1.05rem;
    }
    .auth-shell {
        padding-top: 24px;
    }
}

@media (min-width: 1200px) {
    .header-content {
        padding: 0 24px;
    }
    .header-logo-img {
        width: 92px;
        max-height: 92px;
    }
}
