/* Issuer Profile */
:root {
  /* Utility Colors */
  --white: #fff;
  --gray-10: #fafbfc;
  --gray-20: #e6e8ec;
  --gray-30: #d1d5db;
  --gray-40: #bdc2c7;
  --gray-50: #a2a6ac;
  --gray-60: #888d93;
  --gray-70: #6e717a;
  --gray-80: #55595c;
  --gray-90: #3c4043;
  --gray-100: #26292c;

  /* Brand Colors */
  --primary-05: #eaeff4;
  --primary-10: #bfcddc;
  --primary-20: #a0b4cb;
  --primary-30: #7592b4;
  --primary-40: #5a7da5;
  --primary-50: #315d8f;
  --primary-60: #2d5582;
  --primary-70: #234266;
  --primary-80: #1b334f;
  --primary-90: #15273c;
  --primary-100: #0c1823;
}

@font-face {
  font-family: "Selawik";
  src: url("/fancyportal/assets/fonts/selawk.ttf") format("truetype"); /* Regular */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Selawik";
  src: url("/fancyportal/assets/fonts/selawkb.ttf") format("truetype"); /* Bold */
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Selawik";
  src: url("/fancyportal/assets/fonts/selawkl.ttf") format("truetype"); /* Light */
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Selawik";
  src: url("/fancyportal/assets/fonts/selawksb.ttf") format("truetype"); /* Semi-Bold */
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Selawik";
  src: url("/fancyportal/assets/fonts/selawksl.ttf") format("truetype"); /* Semi-Light */
  font-weight: 400;
  font-style: italic;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* End of Reset */

body {
  font-family: "Selawik", sans-serif;
}

table {
  width: 100%;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-20);
}

th {
  background-color: var(--gray-10);
  text-align: left;
  position: sticky;
  top: 0;
}

input{
  font-size: 16px;
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-20);
  border-radius: 4px;
}

input::placeholder {
  color: var(--gray-40);
}

input:focus-visible {
  outline: 2px solid var(--primary-50);
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--gray-10);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-20);
  background: var(--white);
  flex-basis: 80px;
}

.logo {
  width: 130px;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: var(--gray-20);
  font-weight: 600;
}

.main-wrapper {
  display: flex;
  flex-grow: 1;
  max-height: calc(100vh - 80px);
}

.sidebar {
  display: none;
  width: 250px;
  padding: 32px 24px;
  border-right: 1px solid var(--gray-20);
  background: var(--white);
}

.sidebar .sidebar-footer {
  display: flex;
  flex-direction: column;
  gap:8px;
}

.sidebar .sidebar-footer img {
  width: 150px;
}

.mobile-menu {
    position: absolute;
    background: white;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 16px 24px;
    display: none;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.main-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
}

.menu-item.active {
  background: var(--primary-50);
  color: var(--white);
}

.main-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  flex-grow: 1;
  overflow: auto;
}

.top-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.welcome-message {
  font-size: 32px;
  font-weight: 600;
}

.mid-section {
  display: flex;
  gap: 24px;
  flex: 1;
  flex-direction: column;
}

.bottom-section {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 400px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: white;
  flex: 1;
  border: 1px solid var(--gray-20);
  border-radius: 8px;
  padding: 24px;
  min-width: 300px;
  height: 100%;
  overflow: auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 20px;
  line-height: 1.5;
}

.btn {
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-50);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-40);
}

.btn-primary:active {
  background-color: var(--primary-50);
}

.btn-primary:disabled {
  background-color: var(--primary-20);
}

.btn-secondary {
  background-color: var(--gray-20);
  padding: 12px 10px;
}

.btn-secondary:hover:not([disabled]) {
  background-color: var(--gray-30);
}

.btn-secondary:active:not([disabled]) {
  background-color: var(--gray-20);
}

.btn-ghost {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-group {
  display: flex;
  gap: 8px;
}

.btn-remove-card, .btn-remove-passkey {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-50);
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.15s, transform 0.1s;
  box-sizing: border-box;
}

.btn-remove-card:hover, .btn-remove-passkey:hover {
  background-color: #fde8e8;
  color: #dc3545;
  transform: scale(1.08);
}

.btn-remove-card:active, .btn-remove-passkey:hover {
  transform: scale(0.96);
}

.btn-remove-card-icon, .btn-remove-passkey-icon  {
  font-size: 1.25rem;
}

.cc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gray-20);
  border-radius: 8px;
  flex-grow: 1;
  background-color: var(--gray-10);
}

.cc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
    @media (max-width: 650px){
        flex-direction: column;
    }
}

.cc-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-image {
  display: grid;
  place-items: center;
  min-width: 80px;
  height: 50px;
  background-color: var(--primary-30);
  border-radius: 4px;
}

.cc-image img {
  width:60px;
}

.flow-chart {
  border: 1px solid var(--gray-20);
  border-radius: 8px;
  flex: 1;
  background-color: var(--gray-10);
  overflow: hidden;
}

.flow-chart .area {
  --color-1: var(--primary-30);
  display: flex;
  justify-content: end;
}

.flow-card {
  justify-content: space-between;
}

.table-wrapper {
  overflow: auto;
  border: 1px solid var(--gray-20);
}

.modal-overlay {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
}

.modal-overlay.hide {
  display: none;
}

.modal {
  width: 80%;
  max-width: 400px;
  height: max-content;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-20);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#loggedInContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logoutBtn {
    display:none;
}


/* Login screen */


.login-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--gray-10);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-screen .logo {
    margin-bottom: 32px;
}

.login-form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: white;
    border: 1px solid var(--gray-20);
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.login-form-container > .form-section {
    display:none;
}

.login-form-container > .form-section.active,
.login-form-container > .form-section > form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--gray-70);
}

.tabs {
    display: flex;
    padding: 6px;
    background: var(--gray-20);
    border-radius: 8px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    background-color: var(--gray-20);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: var(--white);
}

.dashboard-button {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.configuration-button {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.audit-events-button {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}


/* Card passkey info */

.cc-passkey-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-passkey-badge {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
    box-sizing: border-box;
}

.btn-passkey-badge:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.cc-no-passkey {
    color: var(--gray-60);
    font-size: 0.85rem;
    font-style: italic;
}

.btn-create-passkey, .btn-add-card {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--primary-50);
    padding: 6px;
    border-radius: 50px;
    transition: background-color 0.2s, color 0.15s, transform 0.1s;
    box-sizing: border-box;
}

.btn-create-passkey:hover, .btn-add-card:hover {
    background-color: var(--primary-05);
    color: var(--primary-40);
    transform: scale(1.08);
}

.btn-create-passkey:active, .btn-add-card:active {
    transform: scale(0.96);
}

.btn-create-passkey-icon {
    font-size: 1.25rem;
}

.btn-add-card--header .btn-add-card-icon {
    font-size: 2rem;
}

/* Credential list items (card passkey modal) */

.credential-item {
    border-bottom: 1px solid var(--gray-20);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.credential-info p {
    margin: 0.15rem 0;
    color: var(--gray-60);
    font-size: 0.85rem;
}

/* Landscape phones and down */
@media (min-width: 575px) {
}

/* Portrait phones and down */
@media (min-width: 767px) {
}

/* Landscape tablets and small desktops */
@media (min-width: 576px) and (max-width: 767px) {
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
}

/* Tablets */
@media (min-width: 991px) {
  #logoutBtn {
    display:block;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .top-section {
    align-items: center;
    flex-direction: row;
  }

  .mid-section {
    max-height: 800px;
    flex-direction: row;
  }

  .card-number {
    font-size: 20px;
  }
}

/* Desktops and laptops */
@media (min-width: 992px) and (max-width: 1199px) {
}

/* Large desktops */
@media (min-width: 1200px) {
}
