
:root {
    --primary-color: #547471;
    --secondary-color: #DFD7CC;
    --primary-color-hover: #90b1ad;
    --secondary-color-hover: #ddd8c4;
    --card-bg: #EFE7DD;
    --card-bg-hover: #f7e8d6;
    --font-size: 16px;
    --spacing: 10px;
}
/* //@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */
body {
    font-family: "Roboto",Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;

}
/* ###############################  LOGIN  ############################### */
.login-body {
  font-family: "Roboto",Arial, sans-serif;
  background-image: url('BG.jpg');
  background-size: cover;
  background-color: white; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: #ffffffab;
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
}

.login-container h2 {
  color: #333; /* Assuming a dark grey color for text */
  text-align: center;
}

.login-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  border-bottom: 1px solid ;
  box-sizing: border-box;
}

.login-input:focus{
  outline: none;
  border-bottom: 1px solid rgb(29, 26, 15) !important;
}

.login-submit {
  background-color: var(--primary-color); 
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;
}

.login-submit:hover {
  background-color: var(--primary-color-hover); /* Darker yellow on hover */
}

.footer {
  text-align: center;
  font-size: 0.8em;
  color: #666;
  margin-top: 20px;
}
.login-err{
  margin-top: 20px;
  padding-left: 30px;
  color: rgb(243, 103, 103);
  font-style: italic;
}
.deco-btn{
  background-color: transparent;
  font-size: 20px;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}
.deco-btn:hover{
  color: var(--secondary-color);;
}
.settings-username{
  margin: 0 20px;
  color: var(--primary-color);
}

/* ###############################  DASHBOARD  ############################### */
.overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px); /* 🔥 Blur background */
    background: rgba(0, 0, 0, 0.35); /* Optional dim */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: white;
    padding: 30px;
    border-radius: 14px;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.user-app-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.user-app-table th {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    text-align: center;
}

.user-app-table td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-app-table tbody tr:hover {
    background: rgba(255,255,255,0.06);
    transition: 0.2s;
}
/* Responsive wrapper */
.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

/* Role badges */
.role-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}
.role-admin {
    background: #d9534f;
}
.role-user {
    background: #0275d8;
}

/* App column layout */
.app-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-icon {
    width: 22px;
    height: 22px;
    background-color: var(--primary-color);
}

/* Modified row highlight */
.modified {
    background: rgba(255, 230, 150, 0.4) !important;
    transition: background 0.5s;
}

/* Saving spinner */
.saving-spinner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000000aa;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    font-size: 14px;
    z-index: 99999;
}
.overlay-utils{
  display: flex;
  justify-content: space-between;
}
.overlay-utils input{
  border: none;
  font-size: 15px;
  color:var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}
.overlay-utils input:focus{
  outline: none;
}
.overlay-utils button{
  border:1px solid black;
  color: white;
  background-color: var(--primary-color);
  border-radius: 5px;
  font-size: 15px;
  cursor:pointer
}
.overlay-utils button:hover{
  color: black;
  background-color: #73918e;
  border-radius: 5px;
  font-size: 15px;
  cursor:pointer
}
.hidden {
    display: none;
}

/* Overlay title */
.overlay-title {
    margin-bottom: 15px;
    text-align: center;
}

.settings{
  background-color: #c8d4d4;
  width:32px;
  height:32px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}
.settings:hover{
  background-color:#e8ecec ;
  cursor: pointer;
}
.settings img {
  width: 28px;
  height: 28px;
 
}
.app-checkbox {
    accent-color: var(--primary-color); /* your custom color */
    width: 15px;
    height: 15px;
}
/* HEADER (Desktop default) */
.header {
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    position:relative;
}

.logo-div {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 40px;
}

header img {
    height: 70px;
}

.user-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    height: 40px;
}
.logout:hover{
  background: rgba(255, 255, 255, 0.452);
}
/* BANNER (Desktop default) */
.banner {
    height: 120px;
    /* background: linear-gradient(45deg, #5f877f, #3d5f5d); */
    background: linear-gradient(45deg, #948f87, #365351, #3d5f5d, #99948d);
    margin: 20px 40px;
    border-radius: 18px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
}

/* CONTENT (Desktop default) */
.container {
    padding: 0 40px 50px;
}

h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: #2f4f4d;
}

/* GRID - Desktop 2-column */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
     gap: 22px; 
   /* display:flex;
    flex-wrap: wrap; */
}
.it-grid {
     gap: 22px; 
   display:flex;
    flex-wrap: wrap;
}
/* Allow a card to span both columns if needed */
.wide2 {
    grid-column: span 2;
}
.wide3 {
    grid-column: span 3;
}

/* CARD (Desktop default) */
.card-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;     /* important so card fills correctly */
}
.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: background 1s ease, box-shadow 1s ease;
    text-decoration: none;
    color: inherit;
    
}
.card .info-section{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.card .info-section p{ 
  margin: 0;
}
.card p{
  color: rgb(78, 78, 78);
  font-size: 15px;
}
.card:hover{
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #ddcab3);
}
.icon {
    background: var(--primary-color);
    color: white;
    font-size: 26px;
    padding: 5px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card .icon img{
  height: 50px;
}
.info-section span{
  font-size: 11px;
  color: rgb(175, 175, 175);
  font-style: italic;
}

/* ################################################################################ */
/* ###############################  MOBILE VERSION  ############################### */
/* ###############  APPLIED ONLY WHEN SCREEN WIDTH <= 600px  ###################### */
/* ################################################################################ */

@media (max-width: 920px) {
.login-body {
  background-image: url('BG-mobile.jpg');
}
    /* HEADER smaller */
    .header {
        padding: 14px;
    }

    .logo-div img {
        height: 55px;
    }

    /* Banner smaller */
    .banner {
        height: 110px;
        margin: 14px;
        border-radius: 14px;
        font-size: 10px;
    }
    .user-area{
      flex-direction: column;
      gap: 2px;
      align-items: flex-end;
    }
    .username{
      font-size: 12px;
    }
    .logout{
      height: 30px;
    }
    .settings{
      width: 23px;
      height: 23px;
    }
    .settings img{
      width: 20px;
      height: 20px;
    }
    /* Content tighter */
    .container {
        padding: 0 16px 40px;
    }

    /* Mobile grid = stacked list */
    .grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Remove column spanning */
    .wide {
        grid-column: auto;
    }

    /* Cards smaller */
    .card {
        padding: 16px;
        gap: 16px;
    }

    .icon {
        font-size: 22px;
        padding: 12px;
    }
    section h1{
    font-size: 1rem;
    padding: 0 20px;
    text-align: center;
  }
}



.error {
  align-items: center;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.error__header {
  font-size: 2rem;
  font-weight: 900;
  padding: 1.5rem 0 0.5rem 0;
  margin: 0;

}
.error__header--secondary {
  font-size: 2rem;
  padding: 0 0 1rem 0;
  text-transform: uppercase;
  margin: 0;
}


.stage {
  height: 18rem;
  width: 8rem;
}

.key {
  -webkit-animation-name: squigglevision;
          animation-name: squigglevision;
  -webkit-animation-duration: 0.35s;
          animation-duration: 0.35s;
  -webkit-animation-direction: normal;
          animation-direction: normal;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  position: relative;
  height: 100%;
  width: 8rem;
}
.key__head {
  background: #FDD835;
  border-radius: 50%;
  box-shadow: 0.85rem 0 0 #caa502;
  height: 8rem;
  position: absolute;
  width: 8rem;
  z-index: 1;
}
.key__head::before {
  background: #B2EBF2;
  border-radius: 50%;
  box-shadow: inset 0.5rem 0.1rem 0 #caa502;
  content: "";
  display: block;
  height: 1rem;
  left: 3.5rem;
  position: absolute;
  width: 1rem;
  top: 1.5rem;
}
.key__eye {
  background-color: #111;
  border-radius: 50%;
  height: 0.75rem;
  left: 1.5rem;
  position: absolute;
  top: 4.5rem;
  width: 0.75rem;
}
.key__eye:nth-child(2) {
  left: 5rem;
}
.key__eye::before {
  -webkit-animation: scale 0.35s linear 0s infinite alternate;
          animation: scale 0.35s linear 0s infinite alternate;
  background: white;
  border-radius: 50%;
  content: "";
  display: block;
  height: 0.15rem;
  left: 0.15rem;
  position: absolute;
  width: 0.15rem;
  top: 0.15rem;
}
.key__eye::after {
  -webkit-animation: scale 0.25s linear 0s infinite alternate;
          animation: scale 0.25s linear 0s infinite alternate;
  background: white;
  border-radius: 50%;
  content: "";
  display: block;
  height: 0.25rem;
  left: 0.35rem;
  position: absolute;
  width: 0.25rem;
  top: 0.35rem;
}
.key__mouth {
  -webkit-animation: sniff 2s linear 0s infinite alternate;
          animation: sniff 2s linear 0s infinite alternate;
  border-radius: 50%;
  border: 0.2rem solid #111111;
  border-bottom-color: transparent;
  border-left-color: transparent;
  height: 1.25rem;
  left: 2.85rem;
  position: relative;
  top: 5rem;
  transform: rotate(-45deg);
  width: 1.25rem;
}
.key__body {
  background: #FDD835;
  box-shadow: 1rem 0 0 #caa502;
  height: 9rem;
  position: relative;
  width: 3rem;
  top: 7rem;
  left: 2.5rem;
}
.key__body::before {
  background: rgba(202, 165, 2, 0.5);
  border-radius: 1rem;
  content: "";
  display: block;
  height: 8.5rem;
  left: 1rem;
  position: absolute;
  top: 2rem;
  width: 0.45rem;
  z-index: 2;
}
.key__body::after {
  background: #FDD835;
  border-radius: 0 0 80% 25%;
  box-shadow: 1rem 0 0 #caa502;
  content: "";
  display: block;
  height: 2rem;
  position: absolute;
  top: 100%;
  width: 3rem;
}
.key__arm {
  border-radius: 50%;
  border: 0.2rem solid #111111;
  border-bottom-color: transparent;
  border-top-color: transparent;
  height: 4.55rem;
  position: absolute;
  width: 1.25rem;
}
.key__arm--left {
  left: 1.9rem;
  top: 1rem;
  border-left-color: transparent;
}
.key__arm--right {
  left: -0.5rem;
  top: 1rem;
  border-right-color: transparent;
}
.key__indentation {
  background: #FDD835;
  box-shadow: 0.5rem -0.5rem 0 #caa502;
  height: 2rem;
  transform: rotate(45deg);
  width: 2rem;
  position: absolute;
  top: 2rem;
  left: 2rem;
}
.key__indentation:nth-child(2) {
  top: 4.5rem;
  width: 1.5rem;
  height: 1.5rem;
}
.key__indentation:nth-child(3) {
  top: 6rem;
  width: 1.75rem;
  height: 1.75rem;
}

@-webkit-keyframes scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.4);
  }
}

@keyframes scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.4);
  }
}
@-webkit-keyframes sniff {
  0%, 70%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  75% {
    transform: translateY(-5%) rotate(-45deg);
  }
}
@keyframes sniff {
  0%, 70%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  75% {
    transform: translateY(-5%) rotate(-45deg);
  }
}
.svg-defs {
  display: none;
}

@-webkit-keyframes squigglevision {
  0% {
    filter: url("#squiggly-0");
  }
  25% {
    filter: url("#squiggly-1");
  }
  50% {
    filter: url("#squiggly-2");
  }
  75% {
    filter: url("#squiggly-3");
  }
  100% {
    filter: url("#squiggly-4");
  }
}

@keyframes squigglevision {
  0% {
    filter: url("#squiggly-0");
  }
  25% {
    filter: url("#squiggly-1");
  }
  50% {
    filter: url("#squiggly-2");
  }
  75% {
    filter: url("#squiggly-3");
  }
  100% {
    filter: url("#squiggly-4");
  }
}