/* ===========================================
   EasyJob - Responsive Stylesheet
   Version: 3.0
   =========================================== */

/* ===== Small Phones (max-width: 480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  /* Dashboard Stats Grid - 1 column on small phones */
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .stat-card {
    padding: 0.875rem;
    flex-direction: row;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat-number {
    font-size: 1.125rem;
  }

  /* Quick Actions Grid - 2 columns still but smaller */
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .quick-action-card {
    padding: 0.875rem;
  }

  .quick-action-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5rem;
  }

  .quick-action-card h3 {
    font-size: 0.8125rem;
  }

  .quick-action-card p {
    font-size: 0.75rem;
    display: none;
  }

  /* Welcome Card */
  .dashboard-welcome-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .dashboard-welcome-card .welcome-text h1 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
  }

  .dashboard-welcome-card .welcome-text p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .welcome-btn {
    padding: 0.75rem;
    gap: 0.625rem;
    width: 100%;
  }

  .welcome-btn-icon {
    width: 34px;
    height: 34px;
  }

  .welcome-btn-label {
    font-size: 0.875rem;
  }

  .welcome-btn-sublabel {
    display: none;
  }

  /* Vacancy List - Small phones */
  .vacancy-list-item {
    padding: 0.875rem;
  }

  .vacancy-list-title {
    font-size: 0.875rem;
  }

  .vacancy-list-views {
    font-size: 0.75rem;
  }

  .vacancy-list-action {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  /* Applications List - Small phones */
  .application-item {
    padding: 0.875rem;
    gap: 0.625rem;
  }

  .application-company-logo {
    width: 36px;
    height: 36px;
  }

  .application-vacancy-title {
    font-size: 0.9375rem;
  }

  .application-meta {
    font-size: 0.75rem;
  }

  /* Filter form - Small phones */
  .filter-group-btn {
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-group-btn .btn-primary,
  .filter-group-btn .btn-outline {
    width: 100%;
  }

  /* Notices - Small phones */
  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.875rem;
    gap: 0.625rem;
  }

  .notice-icon {
    width: 32px;
    height: 32px;
  }

  .notice-content {
    width: 100%;
  }

  .notice-title {
    font-size: 0.9375rem;
  }

  .notice-body {
    font-size: 0.8125rem;
  }

  .notice-date {
    font-size: 0.75rem;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
  }

  .job-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .job-card .job-meta {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.75rem;
  }

  .filter-sidebar {
    padding: 1rem;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }

  /* Job Seeker Auth Panel */
  .jobseeker-auth-panel {
    padding: 1.5rem;
  }

  .jobseeker-auth-panel h2 {
    font-size: 1.25rem;
  }

  /* Job Seeker Stats */
  .js-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .js-stat-card {
    padding: 1rem;
  }

  .js-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .js-stat-value {
    font-size: 1.25rem;
  }

  /* Job Seeker Welcome */
  .js-welcome-card {
    padding: 1.25rem;
  }

  .js-welcome-content h2 {
    font-size: 1.25rem;
  }

  .js-welcome-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Quick Actions */
  .js-quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .js-quick-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Resume List */
  .js-resume-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .js-resume-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Application Item */
  .js-application-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .js-application-status {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  /* CV Pool */
  .cv-pool-grid {
    grid-template-columns: 1fr;
  }

  .cv-pool-card {
    padding: 1.25rem;
  }

  .cv-pool-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Dashboard */
  .dashboard-card {
    padding: 1rem;
  }

  .dashboard-card-title {
    font-size: 1.125rem;
  }

  /* Sidebar - Mobile */
  .sidebar-menu {
    flex-direction: column;
    gap: 0.25rem;
  }

  .sidebar-menu-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    justify-content: flex-start;
    width: 100%;
  }

  .sidebar-menu-item span {
    display: inline;
  }

  .sidebar-menu-item svg {
    width: 18px;
    height: 18px;
    margin-right: 0.625rem;
    flex-shrink: 0;
  }

  .sidebar-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    margin-left: auto;
  }

  /* Resume */
  .resume-icon svg {
    width: 28px;
    height: 28px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  /* Forms - prevent iOS zoom */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  /* CV Pool */
  .cv-pool-name {
    font-size: 1rem;
  }

  .cv-list-compact {
    gap: 0.5rem;
  }

  .cv-list-item {
    padding: 0.625rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Pagination */
  .pagination-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  /* Alerts */
  .form-alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* File upload */
  .file-upload-label {
    padding: 1.5rem 1rem;
  }

  .file-upload-text {
    font-size: 0.875rem;
  }
}

/* ===== Extra Small Phones (max-width: 360px) ===== */
@media (max-width: 360px) {
  .dashboard-container {
    padding: 0 0.5rem;
  }

  .dashboard-card {
    padding: 0.875rem;
    border-radius: var(--radius);
  }

  .sidebar-menu-item span {
    display: inline;
    font-size: 0.75rem;
  }

  .sidebar-menu-item {
    padding: 0.5rem 0.75rem;
    justify-content: flex-start;
    font-size: 0.75rem;
  }

  .sidebar-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 0.5rem;
  }

  .sidebar-badge {
    font-size: 0.625rem;
    padding: 0.0625rem 0.3125rem;
  }

  .form-submit-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .cv-pool-card-header {
    flex-direction: column;
    text-align: center;
  }

  .cv-pool-avatar {
    margin: 0 auto 0.75rem;
  }

  .cv-pool-info {
    text-align: center;
  }
}

/* ===== Phones (max-width: 640px) ===== */
@media (max-width: 640px) {
  .section {
    padding: 2rem 0;
  }

  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .py-12 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .mt-16 {
    margin-top: 2rem;
  }

  .mt-12 {
    margin-top: 1.5rem;
  }

  .gap-8 {
    gap: 1.5rem;
  }

  .gap-6 {
    gap: 1rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  /* Hide on mobile */
  .hide-mobile {
    display: none !important;
  }

  /* Show on mobile */
  .show-mobile {
    display: flex !important;
  }

  /* Grid adjustments */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    gap: 1.5rem;
  }

  /* Job Card Mobile */
  .job-card-content {
    flex-wrap: wrap;
  }

  .job-meta {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .job-meta-mobile {
    display: flex;
  }

  /* Page Header */
  .page-title {
    font-size: 1.5rem;
  }

  /* Job Seeker Dashboard Layout */
  .js-dashboard-layout {
    flex-direction: column;
  }

  .js-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 1.5rem;
  }

  .js-content {
    width: 100%;
    padding-left: 0;
  }

  /* Job Seeker Stats Grid */
  .js-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profile Form */
  .js-profile-form .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .js-profile-form .form-row .form-group {
    width: 100%;
  }

  /* Resume Upload */
  .js-resume-upload-form {
    flex-direction: column;
    gap: 1rem;
  }

  .js-resume-upload-form .form-group {
    width: 100%;
  }

  /* CV Pool Grid */
  .cv-pool-grid {
    grid-template-columns: 1fr;
  }

  .cv-pool-filters {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cv-pool-filters .form-control,
  .cv-pool-filters .btn {
    width: 100%;
  }

  /* Status Legend */
  .status-legend {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Company Applications Table */
  .company-applications-table {
    display: block;
    overflow-x: auto;
  }

  .company-applications-table th,
  .company-applications-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* ===== Tablets (max-width: 768px) ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Dashboard Stats Grid */
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .stat-icon svg {
    width: 20px;
    height: 20px;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  /* Quick Actions Grid */
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .quick-action-card {
    padding: 1rem;
  }

  .quick-action-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .quick-action-icon svg {
    width: 20px;
    height: 20px;
  }

  .quick-action-card h3 {
    font-size: 0.9375rem;
  }

  .quick-action-card p {
    font-size: 0.8125rem;
  }

  /* Welcome Card */
  .dashboard-welcome-card {
    padding: 1.5rem;
  }

  .dashboard-welcome-card .welcome-text h1 {
    font-size: 1.375rem;
  }

  .dashboard-welcome-card .welcome-text p {
    font-size: 0.9375rem;
  }

  .welcome-btn {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .welcome-btn-icon {
    width: 38px;
    height: 38px;
  }

  .welcome-btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .welcome-btn-label {
    font-size: 0.9375rem;
  }

  .welcome-btn-sublabel {
    font-size: 0.75rem;
  }

  .welcome-btn-arrow {
    display: none;
  }

  /* Vacancy List */
  .vacancy-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .vacancy-list-action {
    width: 100%;
    justify-content: center;
  }

  .vacancy-list-title {
    font-size: 0.9375rem;
  }

  .vacancy-list-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Filter Form */
  .filter-form {
    margin-bottom: 1rem;
  }

  .filter-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group-btn {
    flex-direction: row;
    width: 100%;
  }

  .filter-group-btn .btn-primary,
  .filter-group-btn .btn-outline {
    flex: 1;
  }

  /* Applications Table */
  .applications-table-wrapper {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .applications-table {
    min-width: 700px;
    font-size: 0.875rem;
  }

  .applications-table th,
  .applications-table td {
    padding: 0.75rem 0.5rem;
  }

  .applicant-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .applicant-name {
    font-size: 0.875rem;
  }

  .applicant-email {
    font-size: 0.75rem;
  }

  /* Dashboard Card Header */
  .dashboard-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge-count {
    font-size: 0.8125rem;
  }

  /* Applications List (JobSeeker) */
  .applications-list {
    gap: 0.75rem;
  }

  .application-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .application-company-logo {
    width: 40px;
    height: 40px;
  }

  .application-info {
    width: 100%;
  }

  .application-vacancy-title {
    font-size: 1rem;
  }

  .application-company-name {
    font-size: 0.875rem;
  }

  .application-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .application-status-wrapper {
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
  }

  .application-status {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .application-note {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
  }

  /* Header */
  .header .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .dark .header .nav {
    background: var(--gray-900);
  }

  .header .nav.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  .header .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .dark .header .nav-link {
    border-bottom-color: var(--gray-800);
  }

  .menu-toggle {
    display: flex;
  }

  /* Dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
    border: none;
  }

  /* Page Header */
  .page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .page-header .btn {
    width: 100%;
  }

  /* Layout */
  .layout-sidebar {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    order: 2;
    margin-top: 1.5rem;
  }

  .main-content {
    order: 1;
  }

  /* Filter toggle button for mobile */
  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 1rem;
  }

  .dark .filter-toggle {
    background: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--gray-300);
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.active {
    display: block;
  }

  /* Grid */
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pagination */
  .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
    display: none;
  }

  .pagination .page-item.active + .page-item,
  .pagination .page-item:has(+ .active) {
    display: flex;
  }

  /* Job Seeker Sidebar Mobile */
  .js-sidebar {
    padding: 1rem;
  }

  .js-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .js-sidebar-link {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .js-sidebar-link span {
    display: inline;
    font-size: 0.75rem;
  }

  .js-sidebar-link i {
    margin-right: 0.5rem;
  }

  /* Sidebar menu - tablet */
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-menu-item {
    flex: 0 1 auto;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .sidebar-menu-item span {
    display: inline;
  }

  .sidebar-menu-item svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
  }

  /* Job Seeker Notices */
  .js-notice-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .js-notice-date {
    margin-left: 0;
  }

  /* Application Detail */
  .application-detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .application-detail-sidebar {
    order: -1;
  }

  /* Dashboard */
  .dashboard-page {
    padding: 1rem 0;
  }

  .dashboard-container {
    padding: 0 0.75rem;
  }

  .dashboard-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .dashboard-card-title {
    font-size: 1.25rem;
  }

  .dashboard-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* CV Pool */
  .cv-pool-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cv-pool-search {
    max-width: 100%;
  }

  .search-form-inline {
    flex-direction: column;
  }

  .search-form-inline .btn-primary,
  .search-form-inline .btn-outline {
    width: 100%;
  }

  .cv-pool-card-header {
    padding: 1rem;
  }

  .cv-pool-card-body {
    padding: 1rem;
  }

  .cv-pool-card-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cv-pool-card-footer .btn-primary,
  .cv-pool-card-footer .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.col-span-6,
  .form-group.col-span-12 {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-btn {
    width: 100%;
  }

  /* Upload form */
  .upload-form-grid {
    grid-template-columns: 1fr;
  }

  .upload-card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .upload-card-icon {
    margin: 0 auto;
  }

  .upload-submit-btn {
    width: 100%;
  }

  /* Resume list */
  .resume-item {
    padding: 1rem;
  }

  .resume-info {
    width: 100%;
  }

  .resume-title {
    font-size: 0.9375rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .resume-meta {
    flex-wrap: wrap;
  }

  .resume-actions {
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 0.5rem;
  }

  /* Notices */
  .notice-item {
    padding: 1rem;
  }

  .notices-list {
    gap: 0.75rem;
  }

  /* Applications */
  .application-card {
    padding: 1rem;
  }

  .application-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Welcome card */
  .dashboard-welcome-card {
    padding: 1.25rem;
  }

  .welcome-content {
    flex-direction: column;
    gap: 1rem;
  }

  .welcome-btn {
    width: 100%;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  /* Auth pages */
  .auth-page {
    padding: 1rem;
  }

  .auth-form-card {
    padding: 1.5rem;
  }

  .auth-form-title {
    font-size: 1.5rem;
  }

  .auth-panel {
    display: none;
  }

  /* Page headers */
  .page-header-section {
    padding: 1.5rem 0;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.9375rem;
  }
}

/* ===== Small Laptops (max-width: 991px) ===== */
@media (max-width: 991px) {
  /* Layout with sidebar */
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .col-sidebar {
    order: 2;
  }

  .col-main {
    order: 1;
  }

  /* Job Seeker Stats Grid */
  .js-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CV Pool Grid */
  .cv-pool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Dashboard Layout */
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-card {
    padding: 1rem;
  }

  .sidebar-logo-section {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding-bottom: 1rem;
  }

  .sidebar-logo-wrapper,
  .sidebar-avatar-wrapper {
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-menu-item {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .sidebar-dropdown {
    width: auto;
    position: relative;
  }

  .sidebar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 100;
  }

  .dark .sidebar-dropdown-menu {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }

  .sidebar-dropdown.open .sidebar-dropdown-menu {
    display: flex;
  }

  /* Resume list */
  .resume-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .resume-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ===== Tablets Landscape & Small Laptops (min-width: 768px) ===== */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .md-flex { display: flex; }
  .md-hidden { display: none; }
  .md-block { display: block; }

  .md-flex-row { flex-direction: row; }

  .md-items-center { align-items: center; }
  .md-justify-between { justify-content: space-between; }

  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

  .md-text-left { text-align: left; }

  .md-w-auto { width: auto; }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Job Seeker Stats */
  .js-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Job Seeker Sidebar */
  .js-sidebar-link span {
    display: inline;
  }

  .js-sidebar-link i {
    margin-right: 0.75rem;
  }

  /* CV Pool Grid */
  .cv-pool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Tablets Landscape (min-width: 768px) ===== */
@media (min-width: 768px) {
  /* Page Header */
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Footer Bottom */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Laptops (min-width: 1024px) ===== */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .lg-flex { display: flex; }
  .lg-hidden { display: none; }
  .lg-block { display: block; }

  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

  /* Layout with sidebar */
  .layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }

  .col-sidebar {
    order: 1;
  }

  .col-main {
    order: 2;
  }

  /* Filter sidebar always visible */
  .filter-toggle {
    display: none;
  }

  .filter-sidebar {
    display: block !important;
    position: sticky;
    top: 100px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  /* Job Seeker Dashboard Layout */
  .js-dashboard-layout {
    flex-direction: row;
  }

  .js-sidebar {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 100px;
    height: fit-content;
  }

  .js-content {
    flex: 1;
    padding-left: 1.5rem;
  }

  .js-sidebar-nav {
    flex-direction: column;
  }

  /* CV Pool Grid */
  .cv-pool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Application Detail Grid */
  .application-detail-grid {
    grid-template-columns: 1fr 320px;
  }

  .application-detail-sidebar {
    order: 0;
  }
}

/* ===== Large Screens (min-width: 1280px) ===== */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .xl-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .xl-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

  .layout-grid {
    grid-template-columns: 300px 1fr;
    gap: 2rem;
  }

  /* Job Seeker Sidebar */
  .js-sidebar {
    width: 280px;
    min-width: 280px;
  }

  .js-content {
    padding-left: 2rem;
  }

  /* CV Pool Grid */
  .cv-pool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Extra Large Screens (min-width: 1536px) ===== */
@media (min-width: 1536px) {
  .container {
    max-width: 1440px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .footer,
  .back-to-top,
  .theme-toggle,
  .filter-sidebar,
  .filter-toggle,
  .menu-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .job-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  a {
    text-decoration: underline;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  :root {
    --primary: #0000ff;
    --gray-200: #000000;
    --gray-400: #000000;
  }

  .btn-primary {
    border: 2px solid currentColor;
  }

  .card,
  .job-card {
    border-width: 2px;
  }
}

/* ===== Application Modal Responsive ===== */
@media (max-width: 480px) {
  .apply-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .apply-modal-header {
    padding: 1rem 1.25rem;
  }

  .apply-modal-body {
    padding: 1.25rem;
  }

  .apply-form-actions {
    flex-direction: column-reverse;
  }

  .apply-btn-cancel,
  .apply-btn-submit {
    width: 100%;
    justify-content: center;
  }

  .apply-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    transform: translateX(0) translateY(100px);
  }

  .apply-notification.show {
    transform: translateX(0) translateY(0);
  }
}
