/* Mobile Responsive Styles - Tablet & Mobile Devices */

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

/* ===== Large Devices & Tablets (1025px - 1439px) ===== */
@media (max-width: 1439px) {
  h1 {
    font-size: 2.5rem;
  }

  .form-section {
    padding: 28px;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ===== Tablets & Small Laptops (769px - 1024px) ===== */
@media (max-width: 1024px) {
  body {
    padding: 16px;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    max-width: 100%;
  }

  .form-section {
    padding: 20px;
    gap: 16px;
  }

  .form-inputs {
    flex-direction: column;
  }

  .form-row {
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .form-group {
    flex: 1;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  button {
    font-size: 14px;
    padding: 10px 16px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-label {
    font-size: 12px;
  }

  .insights-box {
    padding: 16px;
  }

  .insights-box h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .insights-box ul {
    font-size: 14px;
  }

  .requests-table-box {
    padding: 16px;
  }

  .requests-table-box h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .requests-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .requests-table {
    font-size: 13px;
  }

  .requests-table th,
  .requests-table td {
    padding: 8px;
  }

  .site-footer {
    margin-top: 32px;
    padding: 24px 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .footer-link {
    font-size: 13px;
  }

  .about-section {
    padding: 20px;
  }

  .about-section h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-card {
    padding: 12px;
  }

  .about-card h3 {
    font-size: 14px;
  }

  .about-card p {
    font-size: 12px;
  }

  .about-back-btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ===== Mobile Devices - Landscape (481px - 768px) ===== */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.3rem;
  }

  .container {
    max-width: 100%;
  }

  .form-section {
    padding: 16px;
    gap: 12px;
  }

  .form-inputs {
    flex-direction: column;
  }

  .form-row {
    gap: 10px;
    display: flex !important;
    flex-direction: column !important;
  }

  .form-row .form-group {
    margin-bottom: 0;
    width: 100%;
  }

  .form-row .btn-primary {
    width: 100%;
    align-self: auto;
  }

  .form-group {
    width: 100%;
    flex: 1;
  }

  .form-group label {
    font-size: 12px;
    font-weight: 500;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 10px;
    width: 100%;
  }

  button {
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
  }

  .btn-export {
    width: calc(50% - 6px);
  }

  .btn-export:nth-child(2) {
    margin-left: auto;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 22px;
  }

  .metric-label {
    font-size: 11px;
  }

  .insights-box,
  .requests-table-box {
    padding: 14px;
  }

  .insights-box h2,
  .requests-table-box h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .insights-box ul {
    font-size: 13px;
  }

  .requests-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .requests-table {
    font-size: 12px;
    min-width: 500px;
  }

  .requests-table th,
  .requests-table td {
    padding: 8px 6px;
  }

  .site-footer {
    margin-top: 24px;
    padding: 20px 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .footer-left {
    width: 100%;
  }

  .footer-credit {
    font-size: 13px;
    margin: 0;
  }

  .footer-copyright {
    font-size: 11px;
    margin-top: 4px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .footer-link {
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  .about-hero {
    padding: 16px;
  }

  .about-section {
    padding: 16px;
  }

  .about-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .about-section h3 {
    font-size: 14px;
  }

  .about-section p,
  .about-section li {
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-card {
    padding: 12px;
  }

  .about-card h3 {
    font-size: 13px;
  }

  .about-card p {
    font-size: 12px;
  }

  .about-back-btn {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ===== Mobile Devices - Portrait (max 480px) ===== */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 1.1rem;
  }

  .hero {
    padding: 16px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.4;
  }

  .container {
    max-width: 100%;
  }

  .form-section {
    padding: 12px;
    gap: 10px;
  }

  .form-inputs {
    flex-direction: column;
    gap: 10px;
  }

  .form-row {
    gap: 8px;
    display: flex !important;
    flex-direction: column !important;
  }

  .form-group {
    width: 100%;
  }

  .form-row .btn-primary {
    width: 100%;
    align-self: auto;
  }

  .form-group label {
    font-size: 11px;
    font-weight: 600;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 8px;
    width: 100%;
    border-radius: 6px;
  }

  button {
    font-size: 13px;
    padding: 9px 12px;
    width: 100%;
    border-radius: 6px;
  }

  .export-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }

  .btn-export {
    flex: 1;
    font-size: 12px;
    padding: 8px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric-card {
    padding: 12px;
    border-radius: 8px;
  }

  .metric-value {
    font-size: 20px;
    font-weight: 700;
  }

  .metric-label {
    font-size: 10px;
    margin-top: 4px;
  }

  .insights-box,
  .requests-table-box {
    padding: 12px;
    border-radius: 8px;
  }

  .insights-box h2,
  .requests-table-box h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .insights-box ul {
    font-size: 12px;
    line-height: 1.5;
  }

  .insights-box li {
    margin-bottom: 6px;
  }

  .requests-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    margin: 0 -12px;
  }

  .requests-table {
    font-size: 11px;
    min-width: 480px;
  }

  .requests-table th {
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 600;
  }

  .requests-table td {
    padding: 6px 4px;
  }

  .site-footer {
    margin: 20px -10px -10px -10px;
    padding: 16px 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-left {
    width: 100%;
    text-align: center;
  }

  .footer-credit {
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
  }

  .footer-copyright {
    font-size: 10px;
    margin-top: 2px;
    color: var(--text-muted);
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .footer-link {
    font-size: 12px;
    padding: 6px 0;
    text-align: center;
  }

  .about-hero {
    padding: 12px;
    margin-bottom: 12px;
  }

  .about-section {
    padding: 12px;
    margin-bottom: 12px;
  }

  .about-section h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .about-section h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .about-section p,
  .about-section li {
    font-size: 12px;
    line-height: 1.5;
  }

  .about-section ul,
  .about-section ol {
    margin-left: 16px;
    padding: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-card {
    padding: 10px;
    border-radius: 6px;
  }

  .about-card h3 {
    font-size: 12px;
  }

  .about-card p {
    font-size: 11px;
    line-height: 1.4;
  }

  .about-back-btn {
    margin-top: 8px;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  .about-note {
    font-size: 12px;
    margin-top: 8px;
  }

  .subtitle {
    font-size: 12px;
  }
}

/* ===== Small Mobile Devices (max 360px) ===== */
@media (max-width: 360px) {
  body {
    padding: 8px;
  }

  h1 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .form-section {
    padding: 10px;
    gap: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 8px 6px;
  }

  button {
    font-size: 12px;
    padding: 8px 10px;
  }

  .metric-value {
    font-size: 18px;
  }

  .metric-card {
    padding: 10px;
  }

  .metric-label {
    font-size: 9px;
  }

  .requests-table {
    font-size: 10px;
    min-width: 360px;
  }

  .requests-table th,
  .requests-table td {
    padding: 4px 2px;
  }

  .site-footer {
    margin: 16px -8px -8px -8px;
    padding: 12px 8px;
  }

  .footer-credit {
    font-size: 11px;
  }

  .footer-copyright {
    font-size: 9px;
  }

  .footer-link {
    font-size: 11px;
  }

  .about-section {
    padding: 10px;
  }

  .about-section p,
  .about-section li {
    font-size: 11px;
  }
}
