/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header styling */
header {
  background-color: #3f51b5;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

/* Section styling */
section {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

section h2 {
  border-bottom: 2px solid #3f51b5;
  padding-bottom: 5px;
  margin-bottom: 15px;
  color: #3f51b5;
}

section p {
  font-size: 1.1rem;
  margin: 8px 0;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table th {
  background-color: #e3eaf9;
  color: #333;
}

table tr:nth-child(even) {
  background-color: #f9fbff;
}

table tr:hover {
  background-color: #eef3fc;
}

/* Forms inside table cells */
.sellForm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.sellQuantity {
  width: 60px;
  padding: 5px;
}

/* Buttons (general & sell) */
button,
a.button {
  background-color: #3f51b5;
  color: #fff;
  padding: 7px 15px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

button:hover,
a.button:hover {
  background-color: #303f9f;
}

.sellButton {
  background-color: #e53935;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.sellButton:hover {
  background-color: #c62828;
}

/* Inputs */
input[type="number"] {
  width: 60px;
  padding: 5px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  background-color: #f0f0f0;
}

footer p {
  font-size: 0.9rem;
  color: #6c757d;
}

footer a {
  color: #3f51b5;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* Balance & login details */
#balance {
  font-weight: bold;
  color: #2e7d32;
}

/* Auth Container */
/* .auth-wrapper {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 420px;

  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

/* Header */
/* .auth-wrapper h1 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 25px;
  color: #3f51b5;
} */

/* Forms */
/* form {
  display: flex;
  flex-direction: column;
} */

/* form label {
  font-weight: 600;
  margin: 12px 0 6px;
}

form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}

form input:focus {
  border-color: #3f51b5;
  outline: none;
} */

/* Button */
/* button {
  margin-top: 20px;
  background-color: #3f51b5;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

button:hover {
  background-color: #303f9f;
} */

/* Links & Paragraph */
/* p {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

a {
  color: #3f51b5;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
} */

/* Error Message */
/* #errorMessage,
.error-message {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #f5c2c7;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
} */

/* Index page specific */
body.index {
  text-align: center;
  padding: 50px;
}

body.index h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

body.index a {
  font-size: 1.1rem;
  margin: 0 10px;
  text-decoration: none;
}

body.index a:hover {
  text-decoration: underline;
  color: #303f9f;
}

/* Links general */
a {
  color: #3f51b5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
#spinnerOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid #3f51b5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
