/* Reset and basics */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #6b7280;
  line-height: 1.5;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2, h3 {
  color: #111827;
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: 1rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Navigation */
nav {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  z-index: 1000;
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #111827;
  user-select: none;
}

nav .logout-btn {
  background: transparent;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav .logout-btn:hover {
  background: #ef4444;
  color: white;
}

/* Forms */
form {
  background: #fff;
  max-width: 400px;
  margin: 0 auto 2rem;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 5px #1e40af;
}

button {
  width: 100%;
  background: #1e40af;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover,
button:focus {
  background-color: #1e3a8a;
  transform: scale(1.05);
}

button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* Error messages */
.error {
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Success messages */
.success {
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* Cards for main lines and sub lines */
.card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.card:hover,
.card:focus-within {
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
  outline: none;
}

.card-header {
  font-weight: 700;
  color: #1e40af;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-phone {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-info {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.card-info strong {
  color: #111827;
}

.card-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: #3b82f6;
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #2563eb;
}

.btn-danger {
  background-color: #dc2626;
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.link {
  text-decoration: underline;
  color: #1e40af;
  cursor: pointer;
}

.link:hover {
  color: #1e3a8a;
}

/* Responsive layout */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  .card-buttons {
    /* flex-direction: column; */
  }
}
