/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header img.logo {
  height: 40px;
}
header .logout {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
header .logout:hover {
  background: #b71c1c;
}

/* Container and Cards */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 25px;
}
.card h3 {
  margin-top: 0;
  color: #1a237e;
  margin-bottom: 15px;
}

/* Forms */
label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}
input, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
input:focus, select:focus {
  outline: none;
  border-color: #3949ab;
  box-shadow: 0 0 4px rgba(57, 73, 171, 0.4);
}

/* Buttons */
.btn {
  background: #1a237e;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background: #0d165a;
}
.btn-danger {
  background: #e53935;
}
.btn-danger:hover {
  background: #b71c1c;
}
.btn-success {
  background: #43a047;
}
.btn-success:hover {
  background: #2e7d32;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
th {
  background: #f0f0f5;
  color: #333;
}
tr:nth-child(even) {
  background: #fafafa;
}
img.thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Scrollable tables */
.scrollable {
  max-height: 300px;
  overflow-y: auto;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}
.modal-content h3 {
  margin-top: 0;
  color: #1a237e;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}
.close:hover {
  color: #333;
}
