* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #f8f9fa;
}

.sidebar {
  width: 220px;
  height: 100vh;
  background-color: #2c3e50;
  color: white;
  position: fixed;
  padding: 20px 10px;
  overflow-y: auto;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.sidebar h3 {
    margin-top: 0;
}

.admin-name {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.menu {
  list-style: none;
}

.menu-item {
  margin-bottom: 15px;
}

.menu-item > a {
  color: white;
  text-decoration: none;
  background-color: #34495e;
  padding: 10px;
  border-radius: 4px;
  display: block;
}

.menu-item > a:hover {
  background-color: #1abc9c;
}

.submenu {
  list-style: none;
  padding-left: 15px;
  display: none;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu a {
  font-size: 14px;
  padding: 5px;
  display: block;
  color: #ecf0f1;
  text-decoration: none;
}

.submenu a:hover {
  text-decoration: underline;
}

.main-content {
  margin-left: 220px;
  padding: 30px;
  width: calc(100% - 220px);
}

h2, h3 {
  margin-bottom: 20px;
  color: #333;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.card {
  flex: 1 1 140px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.actions a {
  padding: 10px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.actions a:hover {
  background-color: #0056b3;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

th, td {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: left;
}

th {
  background-color: #e9ecef;
}

.view-all-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}


/* ==== ADD CLIENT PAGE FORM STYLING ==== */


.client-form {
    background: white;
    padding: 25px;
    max-width: 600px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.client-form label {
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

.client-form input,
.client-form select,
.client-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.client-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.client-form button:hover {
    background-color: #0056b3;
}
/* ==== END OF ADD CLIENT PAGE FORM STYLING ==== */
/* ==== Added for Laravel conversion ==== */

.status-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.field-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: -3px;
  margin-bottom: 8px;
  display: block;
}

.pagination {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==== Guest (login/register) pages ==== */
.guest-body { font-family: Arial, sans-serif; background: #f4f4f4; margin: 0; }
.guest-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.guest-card { width: 100%; max-width: 400px; margin-top: 20px; padding: 25px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 8px; }
.guest-card input[type=text], .guest-card input[type=email], .guest-card input[type=password] {
  width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
.guest-card button, .guest-card .btn {
  padding: 10px 15px; background: #007BFF; color: white; border: none; border-radius: 5px; cursor: pointer;
}
.guest-card button:hover, .guest-card .btn:hover { background: #0056b3; }
