/* Currency management page — scoped under .currency-page so these rules
   override the generic form/div/table styles in application.css (higher specificity). */

.currency-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
}

.currency-page div { text-align: left; margin: 0; }

/* Header / toolbar */
.currency-page .page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.currency-page h1 { font-size: 24px; margin: 0 0 6px; text-align: left; color: #111827; }
.currency-page .page-sub { margin: 0; color: #6b7280; font-size: 14px; }
.currency-page .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.currency-page .sync-form, .currency-page .inline-form { display: inline; }

/* Buttons */
.currency-page .btn {
  display: inline-block;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.currency-page .btn-primary { background: #111827; color: #fff; }
.currency-page .btn-primary:hover { background: #1f2937; }
.currency-page .btn-ghost { background: transparent; color: #374151; border: 1px solid #d1d5db; padding: 8px 14px; }
.currency-page .btn-ghost:hover { background: #f3f4f6; }
.currency-page .btn-secondary { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; }
.currency-page .btn-secondary:hover { background: #e5e7eb; }
.currency-page .btn-danger {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.currency-page .btn-danger:hover { background: #fef2f2; }

/* Neutralize the generic form card styles inside this page */
.currency-page form { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
.currency-page form div { margin: 0; }

/* Cards + grid */
.currency-page .currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 800px) { .currency-page .currency-grid { grid-template-columns: 1fr; } }
.currency-page .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.currency-page .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.currency-page .card-head h2 { font-size: 15px; margin: 0; color: #111827; }
.currency-page .badge {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Add form */
.currency-page .add-form { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.currency-page .field { display: flex; flex-direction: column; gap: 6px; }
.currency-page .field label { font-size: 13px; font-weight: 600; color: #374151; }
.currency-page .code-input { width: 160px; text-transform: uppercase; }
.currency-page .code-input:focus { border-color: #111827; outline: none; }

.currency-page select,
.currency-page input[type="text"] {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
}
.currency-page select:focus { border-color: #111827; outline: none; }

/* Tables */
.currency-page .data-table { width: 100%; border-collapse: collapse; margin: 0; background: transparent; }
.currency-page .data-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}
.currency-page .data-table td {
  padding: 9px 10px;
  font-size: 14px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}
.currency-page .data-table tr:nth-child(even) { background: transparent; }
.currency-page .data-table tbody tr:hover { background: #f9fafb; }
.currency-page .code { font-weight: 600; color: #111827; }
.currency-page .rate-num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.currency-page .muted { color: #6b7280; font-size: 12px; }

/* Empty state */
.currency-page .empty { padding: 18px 10px 26px; color: #9ca3af; font-size: 14px; text-align: left; }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */



/* app/assets/stylesheets/forms.css */

form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

form div {
  margin-bottom: 15px;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

form input[type="text"],
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form input[type="text"]:focus,
form select:focus {
  border-color: #007bff;
  outline: none;
}

form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border

}

   body {
     font-family: Arial, sans-serif;
     background-color: #f5f5f5;
     margin: 0;
     padding: 20px;
   }

   h1 {
     text-align: center;
     color: #333;
     margin-bottom: 20px;
   }

   div {
     text-align: center;
     margin-bottom: 20px;
   }

   div a {
     background-color: #007bff;
     color: #fff;
     padding: 10px 20px;
     text-decoration: none;
     border-radius: 5px;
     font-size: 16px;
     display: inline-block;
   }

   div a:hover {
     background-color: #0056b3;
   }

   table {
     width: 100%;
     border-collapse: collapse;
     margin: 0 auto;
     background-color: #fff;
   }

   table, th, td {
     border: 1px solid #ddd;
   }

   th, td {
     padding: 15px;
     text-align: left;
   }

   th {
     background-color: #f2f2f2;
   }

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

   tr:hover {
     background-color: #f1f1f1;
   }

   .btn {
     background-color: #dc3545;
     color: #fff;
     padding: 8px 12px;
     text-decoration: none;
     border: none;
     border-radius: 5px;
     cursor: pointer;
   }

   .btn:hover {
     background-color: #c82333;
   }

   [data-confirm] {
     color: #fff;
   }

/* Flash messages (shown by the application layout) */
.flash {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.flash-notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-alert  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
