/*
  ======================================================================================
  DubNET CZ - Copyright (c) 2023
  Autor: Petr Dubský
  Všechna práva vyhrazena.
  
  Zákaz kopírování, distribuce nebo úpravy tohoto souboru bez předchozího
  písemného souhlasu autora.
    ======================================================================================

  _______   __    __  _______   __    __  ________  ________         ______   ________ 
 |       \ |  \  |  \|       \ |  \  |  \|        \|        \       /      \ |        \
 | $$$$$$$\| $$  | $$| $$$$$$$\| $$\ | $$| $$$$$$$$ \$$$$$$$$      |  $$$$$$\ \$$$$$$$$
 | $$  | $$| $$  | $$| $$__/ $$| $$$\| $$| $$__       | $$         | $$   \$$    /  $$ 
 | $$  | $$| $$  | $$| $$    $$| $$$$\ $$| $$  \      | $$         | $$         /  $$  
 | $$  | $$| $$  | $$| $$$$$$$\| $$\$$ $$| $$$$$      | $$         | $$   __   /  $$   
 | $$__/ $$| $$__/ $$| $$__/ $$| $$ \$$$$| $$_____    | $$         | $$__/  \ /  $$___ 
 | $$    $$ \$$    $$| $$    $$| $$  \$$$| $$     \   | $$          \$$    $$|  $$    \
  \$$$$$$$   \$$$$$$  \$$$$$$$  \$$   \$$ \$$$$$$$$    \$$           \$$$$$$  \$$$$$$$$
                                                                                      
                                                                                      
                                                                                      
  
    ======================================================================================
*/

/* Základní styly pro celou aplikaci */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background: #007BFF; /* Středně modrá barva */
    padding: 5px;
    text-align: center;
    color: white;
}

header a {
    color: #ffffff;
    text-decoration: none;
}

h2 {
    padding: 10px 0;
}

form {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    /* border: 1px solid #ddd; */
}

form label, form input, form select {
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

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

table, th, td {
    border-radius: 10px;
    /* border: 1px solid #ddd; */
}

th, td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

tr:hover {
    background-color: #f5f5f5;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.news-item {
    flex: 1 1 calc(50% - 10px);
    background: linear-gradient(135deg, #f5f7fa, #e4e9ee); /* Gradientní pozadí */
    padding: 20px;
    margin: 10px;
    border-radius: 10px; /* Zaoblené rohy */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Stínování */
    transition: transform 0.3s; /* Přechod efektu pro hover */
}

.news-item h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.news-item p {
    font-size: 1em;
    color: #555;
}

.news-item:hover {
    transform: translateY(-5px);  /* Efekt zdvihnutí při najetí myší */
}

@media only screen and (max-width: 600px) {
    .news-item {
        flex: 1 1 100%;
    }
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.regform-center {
    text-align: center;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.login-box {
    background: linear-gradient(135deg, #f5f7fa, #e4e9ee); /* Gradientní pozadí */
    padding: 30px;
    border-radius: 15px; /* Zaoblené rohy */
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* Stínování */
    max-width: 400px; /* Omezení šířky */
    margin: 0 auto; /* Vycentrování */
}

.login-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-box input[type="email"],
.login-box input[type="text"],
.login-box input[type="date"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px; /* Zaoblení rohů vstupního pole */
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-box input[type="text"]:focus,
.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus,
.login-box input[type="date"]:focus {
    border-color: #007BFF;
    outline: none;
}

.login-box input[type="submit"] {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px; /* Zaoblení rohů tlačítka */
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box input[type="submit"]:hover {
    background-color: #0056b3;
}

.login-box-h2 {
   text-align: center; 
   justify-content: center;
}

.payment-info {
    text-align: center;
}

.login-box form {
    min-width: 300px;
}


.reset-password-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none; 
    margin-top: 10px; 
    width: 87%;
    text-align: center; 
}

.reset-password-link:hover {
    background-color: #0056b3;
}

.save-changes-btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.save-changes-btn:hover {
    background-color: #0056b3;
}

.save-changes-btn {
    text-decoration: none;
}


/* Responzivní styly pro menší obrazovky (např. mobilní telefony) */
@media only screen and (max-width: 600px) {
    .container {
        width: 95%;
    }

    nav ul {
        padding: 0;
        list-style-type: none;
        text-align: center;
        flex-direction: column;
    }

    nav li {
        display: inline-block;
        margin: 5px 0;
    }

    .centered-content {
        padding: 20px;
    }

    .news-item {
        width: 100%;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
    }
}

/* Responzivní styly pro střední obrazovky (např. tablety) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    nav ul {
        padding: 0;
        list-style-type: none;
    }

    nav li {
        display: inline-block;
        margin: 0 10px;
    }

    .centered-content {
        padding: 40px 20px;
    }

    .news-item {
        margin: 20px 0;
    }
}

/* Styly pro zaoblenou tabulku */
.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px; /* Zaoblení rohů tabulky */
    overflow: hidden;  /* Skryje přebytečný obsah mimo zaoblení */
}

.styled-table thead tr {
    background-color: #007BFF;
    color: white;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

/* Střídavé barvy pro řádky tabulky */
.styled-table tbody tr:nth-of-type(odd) {
    background-color: #e9e9e9;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Zaoblení horních a spodních rohů prvního a posledního řádku tabulky */
.styled-table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.styled-table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.styled-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.styled-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.inter-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px; /* Zaoblení rohů tabulky */
    overflow: hidden;  /* Skryje přebytečný obsah mimo zaoblení */
}

.styled-table .inner-table thead tr {
    background-color: #007BFF;
    color: white;
    text-align: left;
}

.inter-table th,
.inter-table td {
    padding: 12px 15px;
}

/* Střídavé barvy pro řádky tabulky */
.inter-table tbody tr:nth-of-type(odd) {
    background-color: #e9e9e9;
}

.inter-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Zaoblení horních a spodních rohů prvního a posledního řádku tabulky */
.inter-table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.inter-table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.inter-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.inter-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

form table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

form table thead tr {
    background-color: #007BFF;
    color: white;
    text-align: left;
}

form table th,
form table td {
    padding: 12px 15px;
}

form table tbody tr:nth-of-type(odd) {
    background-color: #e9e9e9;
}

form table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

form table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

form table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

form table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

form table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

form table .inner-table thead tr {
    background-color: #007BFF;
    color: white;
    text-align: left;
}

.form-none {
    padding: 0px;
    margin: 0px 0;
    background-color: transparent;
}




/* Styly pro levý navigační panel */
.left-navigation {
    float: left;
    width: 20%; /* šířka navigačního panelu */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
}

.left-navigation ul {
    list-style-type: none;
    padding: 0;
}

.left-navigation li {
    margin-bottom: 15px;
}

.left-navigation a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.left-navigation a:hover {
    background-color: #f4f4f4;
}

/* Styly pro obsahovou část stránky */
.content {
    float: right;
    width: 75%; /* šířka obsahové části stránky */
    padding: 20px;
}

/* Responzivní styly pro mobilní zařízení */
@media only screen and (max-width: 768px) {
    .left-navigation, .content {
        float: none;
        width: 100%;
    }
}

.form-inline {
    display: inline;
}

.link-margin-left {
    margin-left: 10px;
}

.button-hidden {
    visibility: hidden; 
    pointer-events: none;
}


#menu {
	background: #0099CC;
	background: linear-gradient(to bottom,  #007BFF,  #293EFF);
	color: #FFF;
	height: 45px;
	padding-left: 18px;
	border-radius: 15px;
}
#menu ul, #menu li {
	margin: 0 auto;
	padding: 0;
	list-style: none
}
#menu ul {
	width: 100%;
}
#menu li {
	float: left;
	display: inline;
	position: relative;
}
#menu a {
	display: block;
	line-height: 45px;
	padding: 0 14px;
	text-decoration: none;
	color: #FFFFFF;
	font-size: 16px;
}
#menu a.dropdown-arrow:after {
	content: "\23F7";
	margin-left: 5px;
}
#menu li a:hover {
	color: #000000;
	background: #007BFF;
}
#menu input {
	display: none;
	margin: 0;
	padding: 0;
	height: 45px;
	width: 100%;
	opacity: 0;
	cursor: pointer
}
#menu label {
	display: none;
	line-height: 45px;
	text-align: center;
	position: absolute;
	left: 35px
}
#menu label:before {
	font-size: 1.6em;
	content: "\2261"; 
	margin-left: 20px;
}
#menu ul.sub-menus{
	height: auto;
	overflow: hidden;
	width: 170px;
	background: #444444;
	position: absolute;
	z-index: 99;
	display: none;
}
#menu ul.sub-menus li {
	display: block;
	width: 100%;
}
#menu ul.sub-menus a {
	color: #FFFFFF;
	font-size: 16px;
}
#menu li:hover ul.sub-menus {
	display: block
}
#menu ul.sub-menus a:hover{
	background: #F2F2F2;
	color: #444444;
}
@media screen and (max-width: 800px){
	#menu {position:relative}
	#menu ul {background:#111;position:absolute;top:100%;right:0;left:0;z-index:3;height:auto;display:none}
	#menu ul.sub-menus {width:100%;position:static;}
	#menu ul.sub-menus a {padding-left:30px;}
	#menu li {display:block;float:none;width:auto;}
	#menu input, #menu label {position:absolute;top:0;left:0;display:block}
	#menu input {z-index:4}
	#menu input:checked + label {color:white}
	#menu input:checked + label:before {content:"\00d7"}
	#menu input:checked ~ ul {display:block}
}




