/* 
   XPDIGITAL App Downloader Website
   Custom Premium White CSS Design System
*/

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f43f5e;
  --accent-light: #fff1f2;
  --success: #10b981;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #93c5fd;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Page Loader Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-fade {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header.navbar-container {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-admin {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-admin:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px 0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -1px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  max-width: 550px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Category Filter Tabs */
.categories-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-tab:hover, .category-tab.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Main Layout: App Grid & Sidebar */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 80px 0;
}

@media (min-width: 992px) {
  .main-content {
    grid-template-columns: 8fr 3fr;
  }
}

.apps-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* App Card */
.app-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.app-card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.app-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background-color: #f1f5f9;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.app-card:hover .app-card-logo {
  transform: scale(1.05);
}

.app-card-meta {
  flex: 1;
}

.app-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.app-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.app-card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-card-download {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.app-card:hover .btn-card-download {
  background-color: var(--primary);
  color: #fff;
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.featured-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.featured-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #f1f5f9;
}

.featured-details {
  flex: 1;
  min-width: 0;
}

.featured-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-category {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}

.featured-download {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* App Details Page */
.app-detail-container {
  padding: 40px 0 80px 0;
}

.app-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.app-breadcrumb a:hover {
  color: var(--primary);
}

.app-detail-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.app-detail-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .app-detail-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.app-detail-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  background-color: #f1f5f9;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-detail-main {
  flex: 1;
}

.app-detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.app-detail-category {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.app-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

@media (min-width: 768px) {
  .app-stats-row {
    justify-content: flex-start;
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-box-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-detail-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .app-detail-actions {
    width: auto;
    align-self: center;
  }
}

.btn-download-now {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
  width: 100%;
}

.btn-download-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.app-detail-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.app-detail-desc {
  font-size: 16px;
  color: #334155;
  white-space: pre-wrap;
}

/* Download Page */
.download-page {
  text-align: center;
  padding: 80px 0;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-box {
  margin: 40px auto;
  position: relative;
  width: 160px;
  height: 160px;
}

.countdown-circle {
  transform: rotate(-90deg);
  width: 160px;
  height: 160px;
}

.countdown-circle circle {
  fill: none;
  stroke-width: 8;
}

.countdown-circle .bg-ring {
  stroke: var(--border);
}

.countdown-circle .progress-ring {
  stroke: var(--primary);
  stroke-dasharray: 452.389; /* 2 * PI * r (r=72) */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.countdown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
}

.download-status {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 24px;
}

/* Footer Styling */
footer {
  background-color: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

footer .footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

footer .footer-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: #94a3b8;
  transition: var(--transition);
}

.admin-menu-link:hover, .admin-menu-link.active {
  background-color: #334155;
  color: #fff;
}

.admin-main {
  background-color: #f8fafc;
  padding: 40px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

/* Admin Card Metrics */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-info h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-info span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-icon.blue { background-color: #dbeafe; color: #2563eb; }
.metric-icon.pink { background-color: #ffe4e6; color: #e11d48; }
.metric-icon.green { background-color: #d1fae5; color: #059669; }

/* Admin Table */
.admin-table-container {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background-color: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-table td {
  font-size: 14px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.table-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f1f5f9;
}

.btn-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action.edit {
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-action.edit:hover { background-color: var(--primary); color: #fff; }

.btn-action.delete {
  background-color: var(--accent-light);
  color: var(--accent);
}

.btn-action.delete:hover { background-color: var(--accent); color: #fff; }

/* Admin Form Panels */
.admin-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  background-color: #f8fafc;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-submit {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Admin Login Page */
.login-body {
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  text-align: center;
}

.login-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--border);
}

/* ==========================================================================
   Responsive Media Queries (Mobile & Tablet Optimization)
   ========================================================================== */

/* Tablets and small laptops (max-width: 992px) */
@media (max-width: 992px) {
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 16px;
  }

  .admin-sidebar .admin-logo {
    margin-bottom: 0;
  }

  .admin-menu {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-menu::-webkit-scrollbar {
    height: 4px;
  }

  .admin-menu::-webkit-scrollbar-thumb {
    background-color: #475569;
    border-radius: 4px;
  }

  .admin-menu-link {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
  }

  .admin-menu li[style*="margin-top: auto"] {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  .admin-main {
    padding: 24px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .admin-header div:last-child {
    font-size: 12px;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  header.navbar-container {
    padding: 12px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .navbar nav {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }

  .nav-links.show {
    display: flex;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .categories-tabs {
    margin-top: 24px;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding: 4px 0 12px 0;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .categories-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 16px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 0 60px 0;
  }

  .sidebar {
    gap: 24px;
  }

  .app-detail-card {
    padding: 24px;
  }

  .app-detail-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .app-detail-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .app-detail-title {
    font-size: 26px;
  }

  .app-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    width: 100%;
  }

  .stat-box {
    border-right: none !important;
    padding-right: 0 !important;
    align-items: center;
  }

  .stat-box-value {
    font-size: 16px;
  }

  .btn-download-now {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Very Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .search-input {
    padding: 12px 16px 12px 44px;
    font-size: 15px;
  }

  .search-icon {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    padding: 20px;
  }

  .app-card-title {
    font-size: 16px;
  }

  .admin-card {
    padding: 20px 16px;
  }

  .form-row {
    gap: 0;
  }
}
