body {
  font-family: "Raleway", sans-serif; /* Changed font family to Raleway */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  margin: 0;
  color: #333;
}

.login-main {
  flex-grow: 1; /* Allow main content to take up remaining space */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Add padding similar to dashboard-main */
  width: 100%;
  box-sizing: border-box;
}

.navbar {
  background-color: #fff;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.navbar-brand {
  font-size: 1.8em;
  font-weight: 700;
  color: #2193b0;
}

/* This rule is no longer needed as it is consolidated below */

.dashboard-main {
  flex-grow: 1; /* Allow main content to take up remaining space */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align to start to prevent content from stretching */
  padding: 20px; /* Reduced padding */
  width: 100%;
  box-sizing: border-box;
}

/* Remove two-column layout styles */

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%; /* Take full width of dashboard-content */
  justify-content: center;
}

.card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 300px;
  box-sizing: border-box;
}

.card.full-width {
  flex-basis: 100%; /* Take full width */
}

/* Adjust card width within card-row to share space equally */
.card-row .card {
  flex: 1 1 300px; /* Flex-grow, flex-shrink, and flex-basis */
  max-width: 400px; /* Max width for each card */
}

h2 {
  margin-top: 10px; /* Added top margin */
  margin-bottom: 5px; /* Reduced margin */
  color: #2193b0;
  font-size: 2em; /* Adjusted font size */
  font-weight: 700; /* Bolder font weight */
}

h3 {
  margin-top: 5px; /* Added top margin */
  margin-bottom: 20px; /* Adjusted margin for better separation */
  color: #333;
  font-size: 1.4em; /* Adjusted font size */
  font-weight: 600; /* Bolder font weight */
  text-align: center; /* Center card titles */
}

.card p {
  font-size: 0.95em; /* Default paragraph font size in cards */
  line-height: 1.5;
  margin-bottom: 5px;
}

.card p strong {
  font-weight: 600; /* Slightly less bold for labels */
}

/* Specific alignment and fixed size for client info card content */
/* Remove column-specific card styling */

/* Reusable styles for login and dashboard cards */
.container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

input[type="password"] {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 20px;
  border: 1px solid #cce7ee;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1.1em;
  transition: border-color 0.3s ease;
}

input[type="password"]:focus {
  border-color: #2193b0;
  outline: none;
}

/* Scoped button styles for login container and dashboard cards */
/* Scoped button styles for login, cards, and navbar */
.container button,
.card .button,
.navbar-nav button {
  background-color: #2193b0;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

/* Specific width adjustments */
.container button,
.card .button {
  width: 100%;
}

.navbar-nav button {
  width: auto;
  padding: 10px 20px; /* Maintain original padding for logout */
  font-size: 1em; /* Adjust font size to match original nav-link */
}

.container button:hover,
.card .button:hover,
.navbar-nav button:hover {
  background-color: #1a7a92;
  transform: translateY(-2px);
}

.container button:active,
.card .button:active,
.navbar-nav button:active {
  transform: translateY(0);
}

.error-message {
  color: #e74c3c;
  background-color: #fdd;
  border: 1px solid #fbc;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.qr-message {
  font-size: 1em; /* Adjusted font size */
  color: #555;
  margin-top: 10px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes content to top/bottom */
  align-items: center; /* Centers content horizontally */
  min-height: 250px; /* Increased min-height for fixed size */
  width: 300px; /* Fixed width for the card */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* This rule is no longer needed */

.qr-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1; /* Allow content to take available space */
}

.qr-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: adds rounded corners to the QR code image */
}

.file-manager-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#openFileManagerBtn {
  width: auto;
}
