/* ========== Responsive Styles for Admin Dashboard ========== */

/* Base Mobile Styles */
:root {
    --mobile-transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --mobile-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --mobile-radius: 12px;
    --mobile-spacing: 16px;
  }
  
  /* Mobile Animation Classes */
  .mobile-fade-in {
    animation: mobileFadeIn 0.4s ease forwards;
  }
  
  .mobile-slide-up {
    animation: mobileSlideUp 0.5s ease forwards;
  }
  
  .mobile-slide-in {
    animation: mobileSlideIn 0.4s ease forwards;
  }
  
  .mobile-bounce {
    animation: mobileBounce 0.5s ease forwards;
  }
  
  @keyframes mobileFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes mobileSlideUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes mobileSlideIn {
    from {
      transform: translateX(-30px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes mobileBounce {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    70% {
      transform: scale(1.05);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Large devices (desktops, less than 1200px) */
  @media (max-width: 1199.98px) {
    .admin-settings {
      max-width: 100%;
      padding: 0 1rem;
    }
  
    .settings-tabs {
      margin-bottom: 1.5rem;
    }
  
    .tab-item {
      padding: 0.75rem 1.25rem;
    }
  
    /* Dashboard adjustments */
    .stats-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 15px;
    }
  
    .dashboard-row {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
  }
  
  /* Medium devices (tablets, less than 992px) */
  @media (max-width: 991.98px) {
    .profile-image-section {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .current-image {
      margin-right: 0;
      margin-bottom: 1.5rem;
    }
  
    .form-row {
      flex-direction: column;
    }
  
    .form-row > .form-group {
      width: 100%;
      margin-right: 0;
      margin-left: 0;
    }
  
    .tab-item {
      padding: 0.75rem 1rem;
    }
  
    .tab-item i {
      margin-right: 0.25rem;
    }
  
    /* Editorial board adjustments */
    .member-thumbnail {
      width: 40px;
      height: 40px;
    }
  
    .action-buttons {
      flex-wrap: wrap;
      gap: 5px;
    }
  
    /* Dashboard adjustments */
    .stats-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
  
    .stat-card {
      padding: 15px;
    }
  
    .stat-icon {
      width: 50px;
      height: 50px;
    }
  
    .quick-actions {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
  }
  
  /* Small devices (landscape phones, less than 768px) */
  @media (max-width: 767.98px) {
    /* Sidebar mobile styles */
    .admin-sidebar {
      width: 0;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
      position: fixed;
      z-index: 1050;
      top: 0;
      left: 0;
      height: 100vh;
      overflow-y: auto;
    }
  
    .admin-sidebar.active {
      width: 85%;
      max-width: 300px;
      transform: translateX(0);
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }
  
    .admin-main {
      margin-left: 0;
    }
  
    .sidebar-toggle {
      display: block;
    }
  
    /* Tab navigation */
    .nav-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 5px;
      margin-bottom: -5px;
    }
  
    .tab-item {
      padding: 0.75rem 0.75rem;
      font-size: 0.9rem;
      flex-shrink: 0;
    }
  
    .tab-item i {
      margin-right: 0.25rem;
      font-size: 1rem;
    }
  
    /* Form elements */
    .form-actions {
      flex-direction: column;
    }
  
    .form-actions .btn {
      width: 100%;
      margin-bottom: 0.5rem;
    }
  
    .input-group {
      flex-direction: column;
    }
  
    .input-group .form-control {
      border-radius: 0.25rem;
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }
  
    .input-group-append {
      margin-left: 0;
      width: 100%;
    }
  
    .input-group-append .btn {
      width: 100%;
      border-radius: 0;
      border-bottom-left-radius: 0.25rem;
      border-bottom-right-radius: 0.25rem;
    }
  
    /* Dashboard adjustments */
    .stats-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 10px;
    }
  
    .stat-card {
      padding: 12px;
    }
  
    .stat-icon {
      width: 45px;
      height: 45px;
      font-size: 1.2rem;
    }
  
    .stat-info h3 {
      font-size: 0.9rem;
    }
  
    .stat-number {
      font-size: 1.3rem;
    }
  
    .dashboard-card {
      margin-bottom: 15px;
    }
  
    .card-header {
      padding: 12px 15px;
    }
  
    .card-body {
      padding: 15px;
    }
  
    /* Table adjustments */
    .table-responsive {
      margin: 0 -15px;
      width: calc(100% + 30px);
      padding: 0 15px;
    }
  
    .table th,
    .table td {
      padding: 8px;
      font-size: 0.85rem;
    }
  
    /* Editorial board adjustments */
    .action-buttons .btn {
      padding: 0.25rem 0.4rem;
      font-size: 0.75rem;
    }
  
    .action-buttons .btn i {
      margin-right: 0;
    }
  
    /* Enhanced mobile styles */
    .mobile-card {
      background: white;
      border-radius: var(--mobile-radius);
      box-shadow: var(--mobile-shadow);
      margin-bottom: var(--mobile-spacing);
      overflow: hidden;
      transition: transform var(--mobile-transition);
    }
  
    .mobile-card:active {
      transform: scale(0.98);
    }
  
    .mobile-list-item {
      padding: 12px;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      align-items: center;
    }
  
    .mobile-list-item:last-child {
      border-bottom: none;
    }
  
    .mobile-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin-right: 12px;
      object-fit: cover;
    }
  
    .mobile-content {
      flex: 1;
    }
  
    .mobile-title {
      font-weight: 600;
      margin-bottom: 4px;
    }
  
    .mobile-subtitle {
      color: #666;
      font-size: 0.85rem;
    }
  
    .mobile-actions {
      display: flex;
      gap: 8px;
    }
  
    .mobile-fab {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--admin-primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      z-index: 100;
      transition: all 0.3s ease;
    }
  
    .mobile-fab:active {
      transform: scale(0.95);
    }
  
    .mobile-fab i {
      font-size: 1.5rem;
    }
  }
  
  /* Extra small devices (portrait phones, less than 576px) */
  @media (max-width: 575.98px) {
    .admin-content {
      padding: 1rem 0.5rem;
    }
  
    .nav-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding: 0;
      margin: 0;
    }
  
    .tab-item {
      padding: 0.75rem 0.5rem;
      font-size: 0.8rem;
      white-space: nowrap;
    }
  
    .tab-pane {
      padding: 1rem 0.75rem;
    }
  
    .settings-section h3 {
      font-size: 1.1rem;
    }
  
    #profile-image-preview {
      width: 100px;
      height: 100px;
    }
  
    .form-group label {
      font-size: 0.9rem;
    }
  
    .form-control {
      font-size: 0.9rem;
    }
  
    .btn {
      font-size: 0.9rem;
    }
  
    .password-section h4 {
      font-size: 1.1rem;
    }
  
    .password-section p {
      font-size: 0.9rem;
    }
  
    /* Dashboard adjustments */
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .dashboard-header h1 {
      font-size: 1.5rem;
    }
  
    .dashboard-header p {
      font-size: 0.9rem;
    }
  
    .quick-actions {
      grid-template-columns: 1fr;
    }
  
    .quick-action-card {
      display: flex;
      flex-direction: row;
      align-items: center;
      text-align: left;
      padding: 12px;
    }
  
    .action-icon {
      width: 40px;
      height: 40px;
      margin-bottom: 0;
      margin-right: 15px;
    }
  
    .quick-action-card h3 {
      margin-bottom: 2px;
      font-size: 1rem;
    }
  
    .quick-action-card p {
      font-size: 0.8rem;
      margin: 0;
    }
  
    /* Table adjustments */
    .table th,
    .table td {
      padding: 6px;
      font-size: 0.8rem;
    }
  
    /* Enhanced mobile styles */
    .mobile-card-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
  
    .mobile-stat-card {
      background: white;
      border-radius: var(--mobile-radius);
      box-shadow: var(--mobile-shadow);
      padding: 15px;
      display: flex;
      align-items: center;
    }
  
    .mobile-stat-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      color: white;
    }
  
    .mobile-stat-content {
      flex: 1;
    }
  
    .mobile-stat-label {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 2px;
    }
  
    .mobile-stat-value {
      font-size: 1.2rem;
      font-weight: 600;
    }
  }
  
  /* Ultra small devices (small phones, less than 400px) */
  @media (max-width: 399.98px) {
    .tab-item {
      padding: 0.5rem 0.4rem;
      font-size: 0.75rem;
    }
  
    .tab-item i {
      margin-right: 0.15rem;
      font-size: 0.9rem;
    }
  
    #profile-image-preview {
      width: 80px;
      height: 80px;
    }
  
    .settings-section h3 {
      font-size: 1rem;
    }
  
    .form-group label {
      font-size: 0.85rem;
    }
  
    .form-control {
      font-size: 0.85rem;
      padding: 0.4rem 0.6rem;
    }
  
    .btn {
      font-size: 0.85rem;
      padding: 0.3rem 0.6rem;
    }
  
    /* Dashboard adjustments */
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .stat-card {
      padding: 10px;
    }
  
    .stat-icon {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
  
    /* Table adjustments */
    .table th,
    .table td {
      padding: 5px;
      font-size: 0.75rem;
    }
  
    /* Enhanced mobile styles */
    .mobile-list-item {
      padding: 10px;
    }
  
    .mobile-avatar {
      width: 35px;
      height: 35px;
      margin-right: 10px;
    }
  
    .mobile-title {
      font-size: 0.85rem;
    }
  
    .mobile-subtitle {
      font-size: 0.75rem;
    }
  
    .mobile-fab {
      width: 48px;
      height: 48px;
      bottom: 15px;
      right: 15px;
    }
  
    .mobile-fab i {
      font-size: 1.2rem;
    }
  }
  