/* Styling for screen width 1600px and below */
@media screen and (max-width: 1600px) {

    /* Adjust base html / body font size slightly to scale down everything */
    html {
        font-size: 14px;
        /* Default is usually 16px */
    }

    /* Side Sidenav container adjustment if needed */
    .sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
        width: 240px;
        /* Reduced from 265px */
    }

    .sb-nav-fixed #layoutSidenav #layoutSidenav_content {
        padding-left: 240px;
        /* Reduced from 265px */
    }

    /* Adjust welcome hero section */
    .welcome-hero {
        padding: 1.25rem 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .welcome-hero h1 {
        font-size: 1.6rem !important;
    }

    .welcome-hero h5 {
        font-size: 1.15rem !important;
    }

    .welcome-hero p {
        font-size: 0.9rem !important;
    }

    /* Redesigned Stat Cards */
    .stat-card {
        padding: 0.7rem 1rem 0.45rem !important;
        border-radius: 16px !important;
    }

    .stat-icon-ring {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .stat-pill {
        padding: 0.1rem 0.45rem !important;
        font-size: 0.6rem !important;
    }

    .stat-label {
        font-size: 0.88rem !important;
    }

    .stat-value-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        border-width: 2px !important;
    }

    /* Panel Card Layouts */
    .panel-card .card-header {
        padding: 0.9rem 1.15rem !important;
        font-size: 0.95rem !important;
    }

    .panel-card .card-body {
        padding: 1.15rem !important;
    }

    /* Quick Action Buttons */
    .action-btn-custom {
        padding: 0.9rem 1.1rem !important;
        border-radius: 10px !important;
    }

    .action-btn-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
        margin-right: 1rem !important;
    }

    .action-btn-title {
        font-size: 0.9rem !important;
    }

    .action-btn-desc {
        font-size: 0.75rem !important;
    }

    /* Certified Copy Application Form specific styling adjustments */
    .form-header-card {
        padding: 18px 24px 14px !important;
        margin-bottom: 20px !important;
    }

    .form-header-card h1 {
        font-size: 1.3rem !important;
    }

    .form-header-card .form-subtitle {
        font-size: 0.8rem !important;
    }

    .form-section {
        margin-bottom: 15px !important;
    }

    .form-section .section-header {
        padding: 8px 16px !important;
    }

    .form-section .section-header h2 {
        font-size: 0.9rem !important;
    }

    .form-section .section-body {
        padding: 16px !important;
    }

    .form-label-col label {
        font-size: 0.83rem !important;
    }

    .field-row {
        margin-bottom: 12px !important;
    }

    .custom-select,
    .form-control {
        font-size: 0.85rem !important;
        padding: 0.375rem 0.75rem !important;
        /* height: calc(1.5em + 0.75rem + 2px) !important; */
    }

    textarea.form-control {
        height: auto !important;
    }
}

/* Specific styling for screen height 900px and below */
@media screen and (max-height: 900px) {
    .dashboard-container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .welcome-hero {
        margin-bottom: 1.25rem !important;
    }

    .stat-card {
        padding: 0.6rem 0.9rem 0.4rem !important;
    }
}