/* Global Styles */

/* Das Padding soll nicht zusätzlich zur Breite gezählt werden */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* verhindert Textauswahl */
    user-select: none;        
    -webkit-user-select: none;
    -moz-user-select: none;
    outline: none;/* entfernt Fokus-Ring */
}

.markable {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    outline: none;
}

/* Damit nicht alle <a> elemente unterschrichen werden */
a,
a:hover,
a:visited,
a:focus,
a:active {
  text-decoration: none !important;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
}
canvas#firewall-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

.notification-container {
    position: fixed;
    top: 45px;
    right: 20px;
    z-index: 99999;
}

.notification {
    background-color: #5c5c5c;
    color: black;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 7s forwards;
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: rgb(194, 0, 0);/*#f44336;*/
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: black;
    background-image: url(/src/NotLoggedInBg.png);
    background-size: cover;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #80bfff;
    position: relative;
    @media (max-aspect-ratio: 3/4) {
        body {
            background-size: 100% 100%;
            background-attachment: scroll;
        }
    }
}

body.no-flex {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: black;/*linear-gradient(45deg, #002a40, #690000b0); /* Darker background */
    background-image: url(/src/NotLoggedInBg.png);
    background-size: stretch;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    display: block;
    color: #80bfff;
    position: relative;
    @media (max-aspect-ratio: 3/4) {
        body {
            background-size: 100% 100%;
            background-attachment: scroll;
        }
    }
}

h3 {
    color: red;
}

h2 {
    color: #ffffff;
}

h4 {
    color: lime;
}

.InputContainer {
    text-align: center;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    background: rgba(65, 65, 65, 0.568);
    box-shadow: 0 0 25px rgba(0, 195, 255, 0.226), 0 0 40px rgba(174, 0, 255, 0.507);
    border: 1px solid rgba(255,255,255,0.1);
    animation: loadAnimation 1s ease-out forwards;
    position: relative;
}

@media (max-width: 500px) {
    .InputContainer {
        width: 65%;
        font-size: 16px;
    }

    button {
        font-size: 15px;
        color: black;
        width: 70%;
        max-width: 300px;
    }

    input {
        width: 90%;
        margin: 0 auto;    /* mittig */
        display: block;    /* notwendig für margin:auto bei Input */
    }

    h1 {
        font-size: 24px;
        text-align: center;
    }
}



.InputContainer form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Optional: Center align the items */
}

/* Input Styling */
input {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    /*border: none;*/
    outline: none;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.521);
    color: #ffffff;
}

.tableInput {
    padding: 10px;
    margin: 0px;
    border-radius: 5px;
    /*border: none;
    min-width: 30%;*/
    outline: none;
    font-size: 18px;
    width: 100%;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.521);
    color: #ffffff;
}

/* Button Styling */
button {
    border: none;
    padding: 18px 35px;
    color: black;
    margin: 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* Login Button */
.loginbtn, .SubmitLogin {
    background-color: #2ecc71;
}

/* Register Button */
.registerbtn {
    background-color: #3498db;
}

/* Hover-Effekt nur für Geräte mit Maus */
@media (hover: hover) and (pointer: fine) {
  button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #707070;/* #00bfff;*/
  }
}

.small-button {
    border: none;
    padding: 10px 15px;
    margin: 5px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.lockbtn {
    background-color: #2ecc71;
}

.unlockbtn {
    background-color: rgba(255, 0, 200, 0.808);
}

.verifybtn {
    background-color: #3498db;
}

.deletebtn {
    background-color: rgba(255, 0, 0, 0.61);
}



/* Tabelle */
table {
    width: 85%;
    border-collapse: collapse;
    margin: 20px auto; /* Center the table horizontally */
    box-shadow: 0 0 20px rgba(160, 160, 160, 0.774);
    animation: loadAnimation 1s ease-out forwards;
}
/* Tabellenkopf */
th {
    background-color: #4e4e4ed0;
    color: #ffffff;
    font-weight: bold;
}
/* Zellen */
td {
    padding: 7px;
    text-align: center;
    background-color: #303336e7;
}

/* Horizontale Tabellen */
table.horizontal {
    width: fit-content;
    border-collapse: collapse;
    margin: 20px auto; /* Center the table horizontally */
    box-shadow: 0 0 20px rgb(255, 255, 255);
    animation: loadAnimation 1s ease-out forwards;
}
/* Tabellenkopf */
th.horizontal {
    width: fit-content;
    padding: 15px;
    background-color: #303336be;
    /*color: #ff9203c0;*/
    font-weight: bold;
    text-align: left;
}
/* Zellen */
td.horizontal {
    width: fit-content;
    padding: 15px;
    text-align: center;
    background-color: #303336be;
    text-align: left;
}

/* Einstellungs layout */
.SettingsContainer {
    display: grid;
    grid-template-areas: 
        'KarteSperren Name Passwort'
        'NeueKarte Transaction Delete';
    grid-template-columns: 1fr 1fr 1fr;        
    position: absolute;
    height: 95%;
    width: 100%;
    top: 1.5cm;
    overflow-y: scroll;
    top: 1.5cm;
}
.UeberweisungsContainerHolder{
    grid-area: Transaction;
}
.DeleteContainerHolder {
    grid-area: Delete;
}
.NeueKarteContainerHolder {
    grid-area: NeueKarte;
}
.PasswortContainerHolder{
    grid-area: Passwort;
}

/* Dashboard layout */
.DashboardContainer {
    display: grid;
    grid-template-areas: 
        'KontoInfoContainer UeberweisungsContainerHolder';
    grid-template-columns: 1fr 1fr;
    height: content-height;
    width: 100%;
    text-align: center;
    column-gap: 1cm;
    row-gap: 1cm;
}
.KontoInfoContainer {
    grid-area: KontoInfoContainer;
}
.UeberweisungsContainerHolder{
    grid-area: UeberweisungsContainerHolder;
}
.TrasactionContainer{
    grid-area: TrasactionContainer;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 500px) {
    button {
        font-size: 18px;
        padding: 15px 0px;
    }

    .InputContainer {
        padding: 15px;
    }
}

/* Subtile Animation beim Laden der Seite */
@keyframes loadAnimation {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}



/* Navigationbar */
nav {
    background: #222;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
}
nav ul {
    margin: 0;
    padding: 0 1em;
    list-style: none;
    display: flex;
    align-items: center;
    height: 48px;
}
nav ul li {
    position: relative;
}
nav ul li a, nav ul li .dropbtn {
    display: block;
    color: #fff;
    padding: 0 18px;
    text-decoration: none;
    line-height: 48px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}
nav ul li a:hover, nav ul li .dropbtn:hover {
    background: #444;
    border-radius: 10px;
}
nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #333;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    flex-direction: column;
    border-radius: 10px;
}
nav ul li.dropdown.open .dropdown-content {
  display: flex;
}
/*
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}*/
nav ul li.dropdown .dropdown-content a {
    color: #fff;
    padding: 0 18px;
    height: 48px;
    line-height: 48px;
    text-decoration: none;
    display: block;
    background: none;
}
nav ul li.dropdown .dropdown-content a:hover {
    background: #444;
}
nav ul li[style*="float: right"] {
    margin-left: auto;
}
#TableContainer {
    overflow-y: auto;
    width: 100%;
    text-align: center;
}
@media (max-width: 520px) {
    nav ul {
        flex-direction: column;
        height: auto;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a, nav ul li .dropbtn {
        line-height: 44px;
    }
    nav ul li[style*="float: right"] {
        margin-left: 0;
    }
}


/* Checkbox Styles */
.CheckboxContainer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0.1rem 0;
    font-family: 'Segoe UI', sans-serif;
}

.CheckboxContainer input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.CheckboxContainer input[type="checkbox"]:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

.CheckboxContainer input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.CheckboxContainer input[type="checkbox"]:checked::after {
    opacity: 1;
}

.CheckboxContainer label {
    cursor: pointer;
    font-size: 15px;
    color: #c0c0c0;
}

.CheckboxContainer input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

@media (max-width: 500px) {
    .CheckboxContainer label {
        font-size: 12px !important;
        color: #c0c0c0; /* oder eine andere Farbe, die du willst */
    }
    .CheckboxContainer input[type="checkbox"] {
        width: 12px !important;
        height: 12px !important;
    }
}


.input-wrapper {
  position: relative;
  width: 100%;
}

.toggle-visibility {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #80bfff;
  font-size: 20px;
  transition: color 0.3s ease;
}


/* standart dropdown menu */
.TableDropDown {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: inherit;
    border: 2px solid #666666;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    text-align: left;
    color: #3498db;
    appearance: none; /* Entfernt den Standard-Pfeil des Browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.TableDropDown:focus {
    outline: none;
    border-color: #007bff;
    background-color: #868686dc;
}

.TableDropDown option {
    background-color: #503e3e;
    color: #80bdf7;
    font-weight: bold;
}
.TableDropDown option:hover {
    background-color: #1eff00;
    color: #f53100;
    font-weight: bold;
}

.TableDropDown::-ms-expand {
    display: none; /* Entfernt den Standard-Pfeil in IE */
}


/* custom dropdown menu */ 
.custom-select {
    position: relative;
    display: inline-block;
    border-radius: 5px;
    border: 2px solid #666;
    cursor: pointer;
    background-color: inherit;
}

.selected {
    background-color: inherit;
    color: #2ecc71;
    height: 100%;
    width: 100%;
    padding: 10px 15px;
    font-weight: bold;
}

.customDropDownOptions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #333;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius:5px;
    width:fit-content;
    width: -moz-fit-content;
}

.customDropDownOptions li {
    cursor: pointer;
    padding: 10px 15px;
    margin: 3px 5px;
    font-weight: bold;
}

.customDropDownOptions li:hover {
    background-color: #1a1a1a;
    color: #f0a500;
    border-radius:5px;
}
