/* ****************
Ratina
************** */

@media (min-width: 1921px) {}

@media (max-width: 1920px) {}

@media (max-width: 1600px) {}

@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: 1fr 290px;
    }
    .page-content {
        padding: 20px;
    }
}

@media (max-width: 1280px) {}

@media (max-width: 1199px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .hamburger,
    .menu-toggle-btn {
        display: block;
    }
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .grid-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .form-section {
        padding: 20px;
    }
}


/* ****************
Desktop
************** */

@media (max-width: 1024px) {}

@media (max-width: 991px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .user-info {
        display: none;
    }
    .dropdown-icon {
        display: none;
    }
    .grid-right {
        grid-template-columns: 1fr 1fr;
    }
    .page-content {
        padding: 16px;
    }
    .top-navbar {
        padding: 0 14px;
    }
    .breadcrumb-bar {
        padding: 10px 16px;
    }
    .form-section {
        padding: 18px;
        margin-bottom: 18px;
    }
    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}


/* **************** 
Tab 
************** */

@media (max-width: 767px) {
    .top-header {
        padding: 0 20px;
        gap: 15px;
        height: 65px;
    }
    .search-box {
        max-width: 180px;
    }
    .search-input {
        height: 40px;
        font-size: 13px;
        padding: 0 15px 0 40px;
    }
    .search-icon {
        left: 14px;
        font-size: 14px;
    }
    .header-right {
        gap: 12px;
    }
    .lang-selector {
        padding: 6px 10px;
    }
    .notif-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .page-content {
        padding: 20px;
    }
    .page-header {
        margin-bottom: 20px;
    }
    .page-title {
        font-size: 20px;
    }
    .form-card {
        padding: 24px;
    }
    .form-title {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .submit-btn {
        width: 100%;
    }
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-select,
    .search-section {
        max-width: 100%;
    }
    .table-actions {
        flex-direction: column;
    }
    .export-btn,
    .add-btn {
        width: 100%;
        justify-content: center;
    }
    .data-table {
        font-size: 13px;
    }
    .data-table thead th,
    .data-table tbody td {
        padding: 12px 10px;
    }
    .modal-dialog {
        width: 95%;
        padding: 24px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .profile-tabs {
        gap: 0;
    }
    .profile-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    .top-navbar {
        padding: 0 16px;
    }
    .search-box {
        width: 160px;
    }
    .tab-content {
        padding: 14px;
    }
    .tab-navigation {
        padding: 0 14px;
    }
    .grid-right {
        grid-template-columns: 1fr;
    }
    .card-custom .card-body {
        padding: 14px;
    }
    .leave-circle {
        width: 70px;
        height: 70px;
    }
    .leave-count {
        font-size: 12px;
    }
    .performance-chart-wrapper {
        height: 160px;
    }
    .search-box .form-control {
        width: 160px;
        height: 34px;
        font-size: 12px;
    }
    .page-title {
        font-size: 19px;
        margin-bottom: 18px;
    }
    .page-content {
        padding: 12px;
    }
    .form-section {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 10px;
    }
    .section-title {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    .form-input {
        height: 40px;
        font-size: 13px;
    }
    .file-display {
        height: 40px;
    }
    .btn-upload-cert,
    .btn-upload-doc {
        height: 40px;
        font-size: 11px;
        padding: 8px 12px;
    }
    .photo-preview {
        width: 120px;
        height: 130px;
    }
    .btn-upload {
        font-size: 12px;
        padding: 7px 14px;
    }
    .btn-submit {
        padding: 12px 40px;
        font-size: 15px;
        min-width: 180px;
    }
    .row.g-3 {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .6rem;
    }
}

@media (max-width: 575px) {
    .search-box {
        display: none;
    }
    .lang-selector {
        display: none;
    }
    .top-header {
        padding: 0 15px;
        gap: 10px;
    }
    .page-content {
        padding: 15px;
    }
    .form-card {
        padding: 20px;
        border-radius: 8px;
    }
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    .search-box {
        width: 120px;
    }
    .search-box .form-control {
        font-size: 12px;
        height: 34px;
    }
    .top-navbar {
        height: 52px;
        padding: 0 12px;
    }
    .tab-navigation .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
    .tab-content {
        padding: 10px;
    }
    .employee-avatar {
        width: 80px;
        height: 80px;
    }
    .employee-name {
        font-size: 16px;
    }
    .leave-circle {
        width: 62px;
        height: 62px;
    }
    .leave-count {
        font-size: 11px;
    }
    .leave-label {
        font-size: 10px;
    }
    .performance-chart-wrapper {
        height: 140px;
    }
    .performance-score {
        font-size: 15px;
    }
    .hours-total {
        font-size: 20px;
    }
    .hours-chart-wrapper {
        height: 130px;
    }
    .calendar-legend {
        gap: 8px;
    }
    .legend-item {
        font-size: 10px;
    }
    .salary-table {
        font-size: 12px;
    }
    .card-title-custom {
        font-size: 14px;
    }
    .search-box .form-control {
        width: 120px;
    }
    .page-title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    .page-content {
        padding: 10px;
    }
    .form-section {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .form-label-custom {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .form-input {
        height: 38px;
        font-size: 12px;
        padding: 7px 10px;
    }
    .file-display {
        height: 38px;
        padding: 3px 8px;
    }
    .file-pdf-icon {
        font-size: 20px;
    }
    .file-name {
        font-size: 12px;
    }
    .file-meta {
        font-size: 9px;
    }
    .btn-upload-cert,
    .btn-upload-doc {
        height: 38px;
        font-size: 10px;
        padding: 7px 10px;
        gap: 4px;
    }
    .photo-upload-area {
        gap: 14px;
    }
    .photo-preview {
        width: 100px;
        height: 110px;
    }
    .btn-upload {
        font-size: 11px;
        padding: 6px 12px;
    }
    .btn-add-more {
        font-size: 12px;
        padding: 7px 14px;
        margin-top: 10px;
    }
    .btn-submit {
        padding: 11px 36px;
        font-size: 14px;
        min-width: 160px;
    }
    .form-submit-area {
        padding: 16px 0 30px;
    }
    .breadcrumb-bar {
        padding: 8px 12px;
    }
    .breadcrumb {
        font-size: 12px;
    }
    .repeater-block {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
}


/* **************** 
Mobile 
************** */

@media (max-width: 375px) {
    .search-box .form-control {
        width: 100px;
    }
    .top-navbar {
        padding: 0 10px;
    }
    .form-section {
        padding: 10px;
    }
    .section-title {
        font-size: 13px;
    }
    .photo-preview {
        width: 80px;
        height: 90px;
    }
    .form-input {
        height: 36px;
        font-size: 11px;
    }
    .file-display {
        height: 36px;
    }
    .btn-upload-cert,
    .btn-upload-doc {
        height: 36px;
        font-size: 9px;
    }
    .btn-submit {
        padding: 10px 30px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {}

@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        padding-bottom: 60px;
    }
    .top-navbar {
        height: 46px;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sidebar,
    .top-header,
    .back-btn,
    .expand-btn,
    .form-actions {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .form-card {
        box-shadow: none;
        border: 1px solid #E8EEF2;
    }
    .page-content {
        padding: 0;
    }
    .sidebar,
    .sidebar-overlay,
    .top-navbar,
    .tab-navigation,
    .sidebar-toggle {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .card-custom {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    .sidebar,
    .sidebar-overlay,
    .top-navbar,
    .breadcrumb-bar,
    .sidebar-toggle,
    .btn-upload,
    .btn-upload-cert,
    .btn-upload-doc,
    .btn-add-more,
    .btn-submit,
    .form-submit-area {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .form-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .page-content {
        padding: 0;
    }
}