﻿/* Responsive Design - Mobile & Tablet Support */

/* Tablet & Mobile Breakpoint (900px) */
@media (max-width: 900px) {
  /* Header buttons */
  .btn-desktop {
    display: none !important;
  }
  
  .btn-mobile {
    display: inline-flex !important;
  }
  
  /* Sidebar drawer */
  #sidebar-drawer {
    position: fixed;
    left: -100%;
    top: 0;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding: 1rem;
  }
  
  #sidebar-drawer.show {
    left: 0;
  }
  
  /* Overlay when drawer is open */
  body.sidebar-open {
    overflow: hidden;
  }
  
  /* Icon buttons */
  .btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
  }
  
  .btn-icon:hover {
    background: var(--accent-surface);
  }
}

/* Small Mobile Breakpoint (576px) */
@media (max-width: 576px) {
  #sidebar-drawer {
    width: 85%;
    max-width: none;
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .action-buttons-right {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .action-buttons-right .btn {
    width: 100%;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .admin-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-btn {
    width: 100%;
    text-align: left;
  }
}

/* Extra Small Mobile (max 360px) */
@media (max-width: 360px) {
  #sidebar-drawer {
    width: 90%;
  }
  
  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
}

