/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #6C63FF, #FF6584);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  color: #6C63FF;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header logo next to title */
header h1 .logo {
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
}

header h1 span {
  color: #FF6584;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: #6C63FF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #FF6584;
}

/* App Grid */
#app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image container styles */
.app-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.app-card .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 4px;
}

.app-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.app-card:hover {
  transform: translateY(-5px);
}

.app-card h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: #6C63FF;
}

.app-card p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

.rating {
  color: #FFCC00;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* Buttons */
button {
  background: #6C63FF;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

button:hover {
  background: #FF6584;
}

/* Footer */
footer {
  background: #ffffff;
  text-align: center;
  padding:  1rem;
  margin-top: auto;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer p .year {
  color: #E38217; /* light brown */
  font-weight: 700;
}

footer p {
  margin: 0;
  color:  #AA51A9;
  font-weight: 600;
}

footer p span {
  color: #0C1911;
  font-weight: 700;
}

footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

footer nav ul li {
  display: inline-flex;
  align-items: center;
}

footer nav ul li + li::before {
  content: "■";
  color: #e0e0e0;
  font-size: 0.6rem;
  margin: 0 12px;
}

footer nav ul li a {
  color: #05A417;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer nav ul li a:hover {
  color: #FF6584;
}

/* Featured Apps Section */
#featured-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-app-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.featured-app-card .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 4px;
}

.featured-app-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.featured-app-card:hover {
  transform: translateY(-5px);
}

.featured-app-card h3 {
  color: #6C63FF;
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.featured-app-card .rating {
  color: #FFCC00;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.featured-app-card button {
  background: #6C63FF;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.featured-app-card button:hover {
  background: #FF6584;
}

/* Login form styles */
#login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#login-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input[type="password"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Logout button styles */
.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.logout-btn:hover {
  background: #c82333;
}

/* About page styles */
#about-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-text {
  line-height: 1.6;
}

.about-text h3 {
  margin-top: 1.5rem;
  color: #333;
}

.about-text ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Submit app form styles */
#submit-app {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#app-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#app-form label {
  font-weight: bold;
  color: #333;
}

#app-form input,
#app-form select,
#app-form textarea {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

#app-form textarea {
  min-height: 100px;
  resize: vertical;
}

#app-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

#app-form button:hover {
  background: #0056b3;
}

/* Download button styles */
.download-btn {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  margin-top: 0.6rem;
  text-align: center;
  white-space: nowrap;
}


.download-btn:hover {
  background: #218838;
}

.featured-app-card a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-app-card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

#app-form input[type="url"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* --- FIX LOGO SIZE --- */
header .logo {
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- FEATURED APP DETAILS --- */
.featured-app-card h4 {
  margin: 0.8rem 0 0.3rem;
  color: #6C63FF;
  font-size: 1.1rem;
}

.features-list,
.deliverables-list {
  list-style: none;
  text-align: left;
  margin: 0.5rem 0 1rem;
  padding-left: 0;
  font-size: 0.9rem;
}

.features-list li,
.deliverables-list li {
  margin-bottom: 0.3rem;
}

/* --- ACTION BUTTONS --- */
.featured-app-card .app-actions {
  margin-top: auto;
}

.featured-app-card .download-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.download-btn {
  color: #ffffff !important;   /* FORCE white text */
}

/* --- PAID BUTTON --- */
.paid-btn {
  background: #ff7a00;
}

.paid-btn:hover {
  background: #e86a00;
}

/* --- PREVENT FLICKER --- */
#featured-apps {
  min-height: 300px;
}

.featured-app-card .app-description {
  text-align: left;
  line-height: 1.4;
}

.refund-analytics {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e3e3;
}

.refund-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.history-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.history-filter select {
  border: 1px solid #d6dae5;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  background: #fff;
}

.refund-stat-card {
  background: #f6f7fb;
  border: 1px solid #e6e8f0;
  border-radius: 8px;
  padding: 0.8rem;
}

.refund-stat-label {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: #5f6673;
}

.refund-stat-value {
  margin: 0;
  font-weight: 600;
  color: #252b36;
}

.refund-list {
  margin: 0.5rem 0 1.2rem;
  padding-left: 1.2rem;
}

.refund-list li {
  margin-bottom: 0.3rem;
}

