/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #555;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

form {
    width: 100%;
}

.form-section {
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #007bff;
    outline: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    color: #555;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Suggestions Box */
.suggestions-box {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestions-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestions-box li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.suggestions-box li:last-child {
    border-bottom: none;
}

.suggestions-box li:hover {
    background-color: #007bff;
    color: #fff;
}

/* Skúška - samostatná kategória */
.test-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.test-section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.test-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.test-field label {
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.test-field .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.test-field .radio-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    color: #555;
}

.test-field .radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Úpravy pre dotykové zariadenia */
@media (pointer: coarse) {
    .suggestions-box li {
        padding: 15px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .submit-button {
        font-size: 1rem;
    }
}

.date-control {
    display: flex;
    align-items: center;
    gap: 5px; /* Rozostup medzi prvkami */
}

.date-control input[type="date"] {
    flex: 1; /* Zabezpečí, že input zaberie čo najviac miesta */
}

.date-control button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.date-control button:hover {
    background-color: #0056b3;
}

        .success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            padding: 10px;
            margin-bottom: 20px;
            border-radius: 5px;
            font-size: 16px;
        }
        .error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            padding: 10px;
            margin-bottom: 20px;
            border-radius: 5px;
            font-size: 16px;
        }
        
                .required::after {
            content: " *";
            color: red;
        }

        
        
        /* styles.css */

/* Štýly pre všetky vstupné polia */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-field input[type="text"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #007bff;
    outline: none;
}


/* V styles.css */
.menu-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
}

.menu-link:hover {
    text-decoration: underline;
}


/* Štýly pre hlavnú navigáciu */
.main-nav {
    background-color: #007bff;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #0056b3;
    border-radius: 5px;
}


.add-company-button {
    background-color: #6c757d; /* Bootstrap Secondary */
    color: white;
    /* Ostatné štýly */
}

.add-company-button:hover {
    background-color: #5a6268;
}

/* Štýly pre navigačné menu */
.navbar {
    background-color: #f8f9fa; /* Svetlo sivé pozadie */
    padding: 10px 20px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-right: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-menu li a i {
    margin-right: 8px; /* Medzera medzi ikonou a textom */
    font-size: 18px;
}

/* Efekt pri prechode myšou */
.nav-menu li a:hover {
    color: #007bff; /* Modrá farba pri hover */
}

.nav-menu li a:hover i {
    color: #007bff;
}

.nav-menu li a i.material-icons {
    font-size: 24px; /* Veľkosť ikony */
    margin-right: 8px;
    vertical-align: middle;
}



/* Štýly pre tabuľku užívateľov */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th, .users-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.users-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.users-table tr:hover {
    background-color: #e9e9e9;
}

.action-button {
    display: inline-block;
    margin-right: 5px;
    color: #007bff;
    text-decoration: none;
}

.action-button i {
    margin-right: 4px;
}

.action-button:hover {
    text-decoration: underline;
}

/* Štýly pre tabuľku firiem */
.companies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.companies-table th, .companies-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.companies-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.companies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.companies-table tr:hover {
    background-color: #e9e9e9;
}

/* Štýly pre akčné tlačidlá */
.action-button {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.action-button:hover {
    text-decoration: underline;
}

/* Štýly pre vyhľadávací formulár */
.search-form {
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    width: 300px;
    padding: 8px;
    margin-right: 5px;
    box-sizing: border-box;
}

.search-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.search-button:hover {
    background-color: #218838;
}

/* Štýly pre stránkovanie */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 5px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #e9e9e9;
}

.pagination .current-page {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.pagination a:first-child, .pagination a:last-child {
    font-weight: bold;
}

