* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pbg: #ffffff;
    --sbg: #f8f9fa;
    --tbg: #f1f3f4;
    --pcolor: #202124;
    --scolor: #5f6368;
    --br: #d0d0d0;
    --br2: #c0c0c0;
    --br3: #b0b0b0;
    --bs: rgba(0, 0, 0, 0.3);
}

.dark-theme {
    --pbg: #0f0f0f;
    --sbg: #1a1a1a;
    --tbg: #2d2d2d;
    --pcolor: #e8eaed;
    --scolor: #9aa0a6;
    --br: #404040;
    --br2: #505050;
    --br3: #606060;
    --bs: rgba(255, 255, 255, 0.15);
}

body {
    background: var(--pbg);
    color: var(--pcolor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid var(--br2);
    padding: 10px;
    text-align: left;
    background: var(--sbg);
}

th {
    background-color: var(--tbg);
    color: var(--scolor);
    font-weight: 900;
}

#Std td button {
    width: 95%;
    background: #22c55e;
    border-radius: 25px;
    border: 0;
    color: white;
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
}

#Std button {
    transition: all 0.3s ease;
    padding: 10px 20px;
}

#Std button:hover {
    background: darkgreen;
    transform: scale(1.1);
}

#Std td {
    text-align: center;
}

footer {
    text-align: center;
    color: var(--pcolor);
}

header {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    width: 100%;
    height: 50px;
    padding: 2px;
    align-items: center;
    background: var(--sbg);
    color: var(--pcolor);
    margin-bottom: 24px;
    z-index: 10;
}

header h1 {
    font-size: 2.4rem;
    padding: 3px;
}

#Hbtns {
    display: flex;
    width: 100%;
}

#Hbtns button {
    flex: 1;
    height: 25px;
    font-size: 18px;
    font-weight: 700;
    background: var(--tbg);
    color: var(--pcolor);
    border: 1px solid var(--br2);
}

a {
    text-decoration: none;
    color: var(--pcolor);
}

#Scontent {
    height: 350px;
    width: 260px;
    background: var(--sbg);
    border: 3px solid var(--br2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 15px;
    align-items: center;
    padding: 15px 10px;
    box-shadow: 0 0 40px 10px var(--bs);
    visibility: hidden;
}

#SC1 {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--br2);
    width: 80%;
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

#Scontent button {
    flex: none;
    height: 32px;
    width: 90%;
    border: 1px solid var(--br2);
    background: var(--tbg);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    color: var(--pcolor);
}

#Scontent button:hover {
    filter: brightness(1.1);
}

#Scontent #CButton {
    position: absolute;
    bottom: 12px;
    border: 2px solid var(--br2);
    background: red;
    color: white;
    font-weight: 900;
    width: 94%;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#Scontent #CButton:hover {
    filter: brightness(1.2);
}

main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px solid var(--br);
    width: 95%;
    height: auto;
    padding: 12px 10px 10px 10px;
    margin: -5px 0 10px 0;
}

#sec1 {
    background: var(--sbg);
    border: 1.5px solid var(--br2);
    padding: 10px;
    height: 320px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
}

#greet {
    background: var(--sbg);
    border: 1.5px solid var(--br2);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
    flex: 0;
}

#Qbtn {
    border: 0;
    width: 55%;
    display: flex;
    align-items: center;
    gap: 20px;
}

#Qbtn button {
    background: var(--tbg);
    color: var(--pcolor);
    width: auto;
    padding: 10px 10px;
    height: auto;
    border: 1px solid var(--br3);
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#Qbtn button:first-of-type:hover,
#Qbtn button:first-of-type:active,
#Qbtn button:first-of-type:focus{
    background: #10b981;
    font-weight: 900;
    font-size: 13px;
}

#Qbtn button:last-of-type:hover,
#Qbtn button:last-of-type:active,
#Qbtn button:last-of-type:focus{
    background: #ef4444;
    font-weight: 900;
    font-size: 13px;
}

#sec1{
  background: var(--sbg);
    border: 1.5px solid var(--br2);
    padding: 14px 12px 14px 12px;
    height: auto;
  width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  position: relative;
}

#CSU{
  width: auto;
  padding: 2px 8px 2px 8px;
  height: 40px;
  border: 2px solid var(--br2);
  border-radius: 8px;
  background: var(--tbg);
  color: var(--pcolor);
  font-size: 16px;
  font-weight: 700;
}

#Ccsu{
  position: absolute;
  right:35px;
  width: auto;
  height: 30px;
  background: var(--tbg);
  color: var(--pcolor);
  font-size: 17px;
  font-weight: 800;
  padding: 2px 8px 2px 8px;
  border: 2px solid var(--br3);
  border-radius: 8px;
  
}

#savedUsers{
  width:97%;
  height: auto;
  min-height: 100px;
  border: 1px solid var(--br2);
    padding: 10px;
  display: none;
  flex-direction: column;
  gap:10px;
}

#SUlist{
  width:95%;
  height: auto;
  min-height: 20px;
  
}

@media (min-width: 1024px) {
    body {
        max-width: 80%;
        margin: 0 auto;
    }
    table {
        width: 70%;
    }
}

@media (min-width: 768px) {
    table {
        width: 80%;
        margin: 0 auto;
    }
}