/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

body {
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

/* Main container */
.container {
  background: #fff;
  max-width: 600px;
  width: 100%;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

/* Headings */
h1, h2, h3 {
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #007bff;
  outline: none;
}

/* Buttons */
button {
  background-color: #007bff;
  color: #fff;
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Error and success messages */
.error, .success {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 18px;
  border-radius: 5px;
  font-weight: 600;
}

.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

/* Table styles for list page */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

table th, table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Links */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Call button style */
.call-btn {
  background-color: #28a745;
  padding: 8px 15px;
  color: white;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s ease;
}

.call-btn:hover {
  background-color: #1e7e34;
}

/* Responsive */
@media (max-width: 650px) {
  body {
    padding: 20px 10px;
    align-items: center;
  }
  
  .container {
    padding: 20px;
    width: 100%;
  }
  
  table th, table td {
    font-size: 14px;
    padding: 10px;
  }
  
  button {
    font-size: 1rem;
    padding: 12px;
  }
}
