/* ===============================
   Radiology Online Network
   Reusable App CSS Framework
   Brand Colors:
   Primary: #e6830F
   Secondary: #0f2e52
   Font: Oswald
   =============================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&display=swap');

/* Root Variables */
body {
  background-color: #f4f6f8;
  color: #333333;
}

header {
  background-color: #0f2e52;
}

.card {
  background-color: #ffffff;
}

button,
.close-btn {
  background-color: #e6830F;
}


/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Oswald', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-force {
  display: inline-block;
  background-color: #e68613 !important;
  color: #ffffff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
}

/* Layout Containers */
header,
main,
footer {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

header {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 1.5rem 1rem;
}

main {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

footer {
  padding: 1rem;
  font-size: 0.85rem;
  color: #666666;
}

/* Responsive Card Grid */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  width: 100%;
  max-width: 320px;
}


/* Card Styling */
.card {
  width: 100%;
  max-width: 340px;
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card h2 {
  margin-top: 0;
  font-weight: 500;
  color: var(--secondary-color);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Buttons */
button,
.close-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-family: 'Oswald', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover,
.close-btn:hover {
  background-color: #cc740d;
}

button:focus,
.close-btn:focus {
  outline: 2px solid #cc740d;
  outline-offset: 2px;
}

/* Modal (Centered & Responsive) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

/* Mobile Optimization */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }

  .card {
    max-width: 100%;
  }
}

.centered-main {
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: flex-start;  /* align cards to the top instead of vertically centered */
  padding: 2rem 1rem;       /* controls spacing around the cards */
}

/* Optional: reduce spacing below the logo */
header .logo {
  display: block;
  margin: 0 auto 0.25rem auto;  /* smaller bottom margin */
  max-width: 300px;
  height: auto;
}

/* Logo styling */
header .logo {
  display: block;                  /* ensures the image is on its own line */
  margin: 0 auto 0.5rem auto;      /* centers it horizontally and adds spacing below */
  max-width: 300px;                /* doubled from 150px to 300px */
  height: auto;                    /* maintains aspect ratio */
}

/* Modal should only show when triggered */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* header to be blue with orange shadow */
header h1 {
  color: #0f2e52; /* Brand blue */
  text-shadow: 2px 2px 3px #e6830F33; /* Light orange shadow with transparency */
  font-size: 2rem;
  margin: 0.5rem 0 0 0;
  text-align: center;
}

/* clickable card links not interfere with the style */
.card-link {
  text-decoration: none; /* remove underline */
  color: inherit;        /* inherit text color */
  display: block;        /* entire card clickable */
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

/* Close X */
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

/* Modal Form */
.modal-content label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.modal-content input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card.clickable {
  cursor: pointer;
}

.headshot {
  width: 100px;
  border-radius: 50%;
}

.status.cleared {
  color: green;
  font-weight: bold;
}

.status.pending {
  color: #cc740d;
  font-weight: bold;
}


