/* Global Modern UI Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  padding: 0;
  padding-bottom: 80px;           /* space so content doesn't go under fixed footer */
  color: #1e293b;
  min-height: 100vh;
}

header {
  background: #5e60ce;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header .logo {
  font-size: 1.6rem;
  user-select: none;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #ffe066;
}

.container {
  max-width: 1200px;
  margin: 3rem auto 3rem auto;
  padding: 0 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 5px 30px #a86ce110;
}

h1,h2,h3 {
  font-weight: 700;
  color: #4c51bf;
  margin-bottom: 1rem;
}

form label {
  font-weight: 600;
  color: #344055;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #c7c7c7;
  width: 100%;
  max-width: 400px;
  outline: none;
  transition: border-color 0.25s ease-in-out;
}

input:focus, select:focus, textarea:focus {
  border-color: #667eea;
}

button {
  margin-top: 2rem;
  background: linear-gradient(90deg, #6b46c1 0%, #b83280 100%);
  border: none;
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 15px #b8328055;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #b8328011;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.table th, .table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #c7c7c7;
  text-align: left;
}

.table th {
  background: #b83280;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

.table tbody tr:hover {
  background: #f3f3f3;
  transition: 0.3s;
}

/* card style */
.card {
  background: #fff;
  padding: 1.7rem;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 10px #b8328050;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  nav {
    font-size: 0.9rem;
  }
  header {
    flex-wrap: wrap;
  }
  nav a {
    margin: 0.5rem;
  }
}

/* Layout Utility Classes */
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 2em;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.card {
  background: #fff;
  border-radius: 1.4em;
  box-shadow: 0 1px 12px #ddd;
  padding: 2em;
  margin-bottom: 1.5em;
  flex: 1;
}
.field-row {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
}
.field-row label {
  flex: 0 0 120px;
}
.field-row input, .field-row select, .field-row textarea {
  flex: 1;
}
.toolbar {
  display: flex;
  flex-direction: row;
  gap: 0.8em;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.action-panel {
  display: flex;
  flex-direction: column;
  gap: 1em;
  background: #f3f3fa;
  border-radius: 0.8em;
  padding: 1em;
}
@media (max-width:900px) {
  .flex-row { flex-direction: column; }
  .card { min-width: unset; }
}

/* ========= FIXED FOOTER AT BOTTOM ========= */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;

  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
  border-top: 3px solid #4c51bf;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}
