:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a1a;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
}

.navbar-custom {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar {
  border-radius: 20px;
  border: none;
  padding-left: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.app-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  object-fit: cover;
}

.category-card {
  border-radius: 12px;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  background-size: cover;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.7)
  );
}

.category-card:hover {
  transform: scale(1.03);
}

.category-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-weight: 600;
  z-index: 2;
  text-decoration:none;
}

.sidebar {
  background-color: white;
  border-right: 1px solid #e9ecef;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
}

.sidebar-link {
  color: var(--secondary-color);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--primary-color);
  color: var(--primary-color);
}

.sidebar-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.rating {
  color: #f39c12;
}

.badge-new {
  background-color: var(--success-color);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-sale {
  background-color: var(--warning-color);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
}

.app-price {
  font-weight: 600;
}

.price-free {
  color: var(--success-color);
}

.featured-slider {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.download-btn {
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
}

.section-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

/* Dark mode toggle */
.dark-mode {
  background-color: var(--dark-bg);
  color: white;
}

.dark-mode .sidebar,
.dark-mode .app-card {
  background-color: #2c3e50;
  color: white;
}

.dark-mode .sidebar-link {
  color: #ecf0f1;
}

.dark-mode .section-title {
  color: #ecf0f1;
}

/* App modal */
.app-modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.app-screenshots {
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.app-info-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
}

.screenshot-thumbnail {
  width: 80px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
}

.screenshot-thumbnail:hover,
.screenshot-thumbnail.active {
  opacity: 1;
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.filter-btn {
  border-radius: 20px;
  margin: 0 5px;
  font-size: 0.9rem;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
