/* Admin Portal Mobile Styles */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .mobile-overlay.active {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .top-bar-left h1 {
    font-size: 1.25rem;
  }
  
  .user-menu-btn {
    padding: 0.5rem;
  }
  
  .user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .chart-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
} 

@media (max-width: 768px) {
  .quick-actions .action-grid a span {
    font-size: 0.75rem;
  }
}

/* ===== Page Layout Mobile Styles ===== */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .page-title-section h1 {
    font-size: 1.5rem;
  }
  
  .page-subtitle {
    font-size: 0.875rem;
  }
  
  .page-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .page-actions .btn {
    flex: 1;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .page-actions .btn i {
    display: none;
  }
  
  /* Stats Row Mobile */
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .stats-row .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .stat-content .stat-number {
    font-size: 1.5rem;
  }
  
  /* Filter Bar Mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  .filter-group {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-select {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .search-bar {
    max-width: none;
    width: 100%;
  }
  
  /* Data Container Mobile */
  .data-container {
    padding: 0 1rem;
  }
  
  /* Table Mobile - Convert to Cards */
  .table-container {
    background: transparent;
    border: none;
  }
  
  .data-table thead {
    display: none;
  }
  
  .data-table tbody {
    display: block;
  }
  
  .data-table tr {
    display: block;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
  }
  
  .data-table td {
    display: block;
    padding: 0.5rem 0;
    border: none;
  }
  
  .data-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Request List Mobile */
  .request-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .request-meta {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
  }
  
  .request-actions {
    width: 100%;
  }
  
  .request-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  /* Card Grid Mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .data-card {
    padding: 1rem;
  }
  
  .card-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .card-stat {
    flex: 1 1 45%;
    min-width: 0;
  }
  
  /* Status Badge Mobile */
  .status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  /* Empty State Mobile */
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-state i {
    font-size: 3rem;
  }
  
  .empty-state h3 {
    font-size: 1.125rem;
  }
  
  .empty-state p {
    font-size: 0.875rem;
  }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-bar {
    flex-wrap: wrap;
  }
  
  .filter-group {
    flex: 1 1 auto;
  }
  
  .search-bar {
    flex: 1 1 100%;
    max-width: none;
    order: -1;
    margin-bottom: 1rem;
  }
} 

/* ===== Mobile Styles for New Components ===== */
@media (max-width: 768px) {
  /* Enhanced Pagination Mobile */
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .pagination-info {
    font-size: 0.75rem;
    text-align: center;
    order: 2;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    order: 1;
  }
  
  .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .page-btn:hover:not(:disabled) {
    transform: none; /* Disable hover transform on mobile */
  }
  
  /* Enhanced Dropdown Mobile */
  .dropdown-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    max-width: none;
    min-width: auto;
    width: auto;
    margin: 0;
    transform: translateY(100%);
  }
  
  .dropdown-menu.show,
  .dropdown-menu.active {
    transform: translateY(0);
  }
  
  .dropdown-item {
    padding: 1rem;
    font-size: 1rem;
    justify-content: flex-start;
  }
  
  .dropdown-item i {
    width: 20px;
    text-align: center;
  }
  
  /* Action Button Mobile */
  .actions-dropdown .action-btn {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
  
  /* Table Actions Cell Mobile */
  .data-table td.actions-cell,
  .data-table td:last-child {
    width: auto;
    padding-right: 1rem;
  }
  
  /* Table styling mobile improvements */
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .data-table th {
    font-size: 0.75rem;
  }
  
  .data-table td {
    font-size: 0.8125rem;
  }
  
  /* Table Actions Mobile */
  .table-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .table-actions .btn,
  .table-actions .action-link {
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
  }
  
  /* Enhanced Buttons Mobile */
  .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
  
  .btn.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn.btn-icon-only {
    width: 36px;
    height: 36px;
  }
  
  .usage-bar {
    width: 80px;
  }
  
  /* Filter Bar Mobile Enhancements */
  .bulk-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .bulk-select {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Tablet Pagination */
@media (min-width: 769px) and (max-width: 1024px) {
  .pagination-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .pagination-info {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .pagination {
    flex: 1 1 100%;
    justify-content: center;
  }
} 

/* ===== Additional Mobile Styles ===== */
@media (max-width: 768px) {
  /* Page Buttons Mobile */
  .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* View Toggle Mobile */
  .view-toggle {
    gap: 0.125rem;
    padding: 0.125rem;
  }
  
  .view-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Bulk Actions Mobile */
  .bulk-actions {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .bulk-buttons {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .bulk-buttons .btn {
    flex: 1 1 48%;
  }
  
  /* Table Cells Mobile */
  .domain-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .domain-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .plan-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .usage-stats {
    font-size: 0.75rem;
  }
  
  .usage-label {
    min-width: 40px;
  }
  
  /* Actions Dropdown Mobile */
  .actions-dropdown .dropdown-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    width: auto;
  }
  
  /* Sortable Headers Mobile */
  .sortable {
    padding-right: 15px;
  }
  
  .sortable i {
    font-size: 0.625rem;
  }
} 

/* ===== Table Controls Mobile ===== */
@media (max-width: 768px) {
  .table-controls {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .search-section {
    width: 100%;
    min-width: auto;
    max-width: none;
    order: -1;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
  }
  
  .search-box i {
    left: 0.875rem;
    font-size: 0.8125rem;
  }
  
  .filters-section {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .filters-section .filter-select {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
  
  .view-options {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Table Controls */
@media (min-width: 769px) and (max-width: 1024px) {
  .table-controls {
    gap: 0.75rem;
  }
  
  .search-section {
    min-width: 250px;
    max-width: 400px;
  }
  
  .filters-section {
    gap: 0.75rem;
  }
} 

/* ===== Modal Mobile Styles ===== */
@media (max-width: 768px) {
  .modal .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 0.5rem;
  }
  
  .modal .modal-content.large {
    max-width: none;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-header h3 {
    font-size: 1.125rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Request Detail Grid Mobile */
  .request-detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .request-info,
  .contact-info {
    padding: 1rem;
  }
  
  .request-info h4,
  .contact-info h4 {
    font-size: 1rem;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  
  .info-row .label {
    min-width: auto;
    font-size: 0.8125rem;
  }
  
  .info-row .value {
    text-align: left;
    font-size: 0.9375rem;
  }
  
  .request-content h4,
  .request-timeline h4 {
    font-size: 1rem;
  }
  
  .message-content {
    padding: 1rem;
    font-size: 0.875rem;
    max-height: 150px;
  }
  
  .timeline {
    padding: 1rem;
  }
  
  .timeline-item {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  
  .timeline-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .timeline-content .action {
    font-size: 0.9375rem;
  }
  
  .timeline-content .timestamp {
    font-size: 0.75rem;
  }
} 