/* ========================================
   LAYOUT DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  /* Reset mobile layout */
  .mobile-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    min-height: 100vh;
  }
  
  /* Desktop Header */
  .app-header {
    background: #ffffff;
    color: #1f2937;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
  }
  
  .app-logo {
    margin-bottom: 16px;
  }
  
  .logo-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
  }
  
  /* Desktop Main Content */
  .main-content {
    padding: 0;
    width: 100%;
    background: white;
    min-height: calc(100vh - 200px);
  }
  
  /* Desktop Search Section */
  .search-section {
    background: #f9fafb;
    padding: 32px 40px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
  }
  
  .search-bar {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .search-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
  }
  
  #search-input {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 600px;
    transition: border-color 0.2s ease;
    background: white;
  }
  
  #search-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  /* Desktop Contact List */
  .contact-list {
    padding: 32px 40px 80px 40px;
    background: white;
    width: 100%;
  }
  
  .contact-list h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
  }
  
  .contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }
  
  .contact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }
  
  .contact-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .contact-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #3b82f6;
  }
  
  .contact-details {
    flex: 1;
  }
  
  .contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
  }
  
  .contact-phone {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .contact-reason {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #f59e0b;
  }
  
  .contact-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
  }
  
  .contact-action-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: #374151;
  }
  
  .contact-action-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
  }
  
  /* Desktop FAB */
  .fab-add-contact {
    width: 56px;
    height: 56px;
    font-size: 24px;
    bottom: 30px;
    right: 30px;
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  
  .fab-add-contact:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  }
  
  /* Desktop Admin Link */
  .admin-link-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .admin-link {
    background: #3b82f6;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
  }
  
  .admin-link:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  }
}

/* Desktop Medium (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .contact-avatar {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  
  .contact-name {
    font-size: 1.2rem;
  }
  
  .contact-phone {
    font-size: 1rem;
  }
}

/* Desktop Small (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .contact-list {
    padding: 32px 30px 80px 30px;
  }
  
  .search-section {
    padding: 32px 30px;
  }
}

/* Search Section - Desktop */
.search-section {
  background: #f9fafb;
  padding: 32px 40px;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
}

.search-bar {
  max-width: 800px;
  margin: 0 auto 24px auto;
}

.search-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  display: block;
}

#search-input {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  width: 100%;
  max-width: 600px;
  transition: border-color 0.2s ease;
  background: white;
}

#search-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Filters - Desktop */
.table-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.table-filters select {
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-filters select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-filters select:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop Export Button */
.export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.export-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.export-btn svg {
  width: 16px;
  height: 16px;
}

