/* public/styles.css */

/* General Body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* Centered Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

/* Form & Card Styling */
.form-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 400px;
  text-align: center;
  margin-bottom: 20px;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Inputs and Textareas */
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
button {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #0056b3;
}

/* Links */
a {
  display: block;
  text-align: center;
  margin-top: 15px;
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

/* Tables (Admin Users / Courses) */
table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background: #eee;
  font-weight: bold;
}

/* Optional: Responsive Table */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th {
    text-align: left;
  }
  td {
    text-align: left;
    padding-left: 50%;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
  }
}
.page-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.course-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-content {
  padding: 15px;
}

.course-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.course-content p {
  font-size: 0.9rem;
  color: #555;
  min-height: 50px;
}

.course-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.course-content a:hover {
  background: #0056b3;
}

.click-count {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
  display: block;
}
