/*
   1. ZÁKLADNÝ RESET A NASTAVENIA ------------------------------------------------------------
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

h1 {
    color: #64748b;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.3rem;
}

.karta1ToDo h2 {
    font-size: 1.3rem;
    color: #E0E0E0;
}

/*
   2. HLAVNÉ ROZLOŽENIE ------------------------------------------------------------
*/
header {
    width: 100vw;
    height: 9vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.headerToDo {
    width: 100vw;
    height: 9vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #444444;
    border-bottom: 1px solid #0C0C0F;
    margin-bottom: 30px;
}

.ohranicenie {
    width: 50vw;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

li {
    list-style-type: none;
    padding-right: 25px;
}

a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    transition: 0.13s;
}

a:hover {
    color: gray;
}

.aToDo {
    text-decoration: none;
    color: #E0E0E0;
    font-size: 18px;
    transition: 0.13s;
}

.aToDo:hover {
    color: #ffffff;
}

main {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Profilový obrázok v hlavičke */
.pfp {
    width: 6.2%;
    min-width: 60px;
    max-width: 120px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: 0;

}

.pfp img {
    max-width: 110%;
}

/*
   3. KARTY ------------------------------------------------------------
*/
.karta1 {
    height: auto;
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.karta1ToDo {
    height: auto;
    background-color: #444444;
    border-radius: 15px;
    border: 1px solid #0C0C0F;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.karta2 {
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.karta2ToDo {
    background-color: #444444;
    border-radius: 15px;
    border: 1px solid #0C0C0F;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.karta2ToDo h2 {
    color: #E0E0E0;
}

/*
   4. SEKCIA VYHĽADÁVANIA ------------------------------------------------------------
*/
.vyhladavanie {
    width: 100%;
    height: 100px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hladat input[type=search] {
    padding: 10px 12px;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s
}

.karta1ToDo .hladat input[type=search] {
    background-color: #121212;
    border: none;
    color: #E0E0E0;
}

.hladat input[type=search]:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.karta1ToDo .hladat input[type=search]:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.hladat input[type=submit] {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
    background-color: white;
}

.karta1ToDo .hladat input[type=submit] {
    background-color: #444444;
    border: 1px solid #121212;
    color: #E0E0E0;
}

.karta1ToDo .hladat input[type=submit]:hover {
    background-color: #2e2e2e;
}

.hladat input[type=submit]:hover {
    background-color: #f1f5f9;
}

/*
   5. VÝPIS DÁT (TABUĽKA) ------------------------------------------------------------
*/
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 15px 20px;
}

th {
    background-color: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.karta1ToDo th {
    background-color: #1f1f1f;
    color: white;
}

.karta1ToDo td {
    color: #E0E0E0;
}

.karta1ToDo tbody tr:hover {
    background-color: #383838;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f8fafc;
}

/* Tlačidlá úprav a mazania v tabuľke */
td button {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
}

td button:hover {
    background-color: #e2e8f0;
}

.karta1ToDo td button:hover {
    background-color: #2b2b2b;
}

/* Modrý ovál pre prihlasovacie meno */
.username {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.karta1ToDo .username {
    background-color: #0d1530;
    color: #e4e4e4;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/*
   6. FORMULÁRE ------------------------------------------------------------
*/
.nadpis {
    padding: 30px;
    padding-left: 16px;
}

.pridavanie_uzivatela {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 30px;
}

.formular {
    display: flex;
    justify-content: space-around;
}

.input {
    display: flex;
    flex-direction: column;
}

.karta2 input[type=text],
.karta2 input[type=date] {
    padding: 10px 12px;
    width: 200px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s
}

.karta2 input[type=text]:focus,
.karta2 input[type=date]:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Tlačidlo Uložiť vo formulári */
.karta2 input[type=submit] {
    margin-bottom: 30px;
    background-color: #4f46e5;
    color: white;
    border: none;
    width: 200px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    align-self: flex-end;
    margin-right: 19px;
    cursor: pointer;
}

.karta2 input[type=submit]:hover {
    background-color: #4338ca;
}

.karta2ToDo input[type=text],
.karta2ToDo input[type=date] {
    padding: 10px 12px;
    width: 200px;
    border-radius: 6px;
    border: 1px solid #000000;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-color: #121212;
    color: white;
}

.karta2ToDo label[for=nazov],
.karta2ToDo label[for=stav],
.karta2ToDo label[for=priorita],
.karta2ToDo label[for=deadline] {
    color: #E0E0E0;
}

.karta2ToDo input[type=text]:focus,
.karta2ToDo input[type=date]:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Tlačidlo Uložiť vo formulári */
.karta2ToDo input[type=submit] {
    margin-bottom: 30px;
    background-color: #121212;
    color: white;
    border: none;
    width: 200px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    align-self: flex-end;
    margin-right: 19px;
    cursor: pointer;
    transition: 0.13s;
}

.karta2ToDo input[type=submit]:hover {
    background-color: #292929;
}