/* ======= Pôvodné štýly ======= */
body {
    background-color: #f8f9fa;
}

/* Centrovanie hlavičky */
h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

/* Centrovanie tlačidla */
.text-center {
    text-align: center;
}

/* Tabuľka na 100% šírky */
.table {
    background-color: white;
    width: 100%;
    margin: 0 auto; /* Centrovanie */
    border-collapse: collapse;
    border: 2px solid #343a40;
}

/* Hlavička tabuľky */
.table thead {
    background-color: #343a40;
    color: white;
}

/* Okraje pre bunky tabuľky */
.table th,
.table td {
    border: 1px solid #343a40;
    padding: 12px;
}

/* Stĺpec Akcie je centrovaný */
.table th.akcie,
.table td.akcie {
    text-align: center;
    width: 20%;
}

/* Zmena dizajnu tlačidiel */
.btn-primary {
    background-color: #007bff;
    border: none;
    font-weight: bold;
    padding: 10px 20px;
    margin: 10px auto; /* Docentrovanie tlačidla */
}

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

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: black;
    font-weight: bold;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    font-weight: bold;
}

/* Tlačidlá majú medzeru medzi sebou */
.btn-sm {
    padding: 12px 50px;
    font-size: 15px;
    display: inline-block;
    tex-size: 12px;
}

/* Odsadenie pre pravú stranu */
.table th.text-end,
.table td.text-end {
    text-align: right;
    padding-right: 20px;
}

/* Odsadenie pre ľavú stranu */
.table th.text-start,
.table td.text-start {
    text-align: left;
    padding-left: 20px;
}

/* Pagination dizajn */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-item .page-link {
    color: #007bff;
    font-weight: bold;
}

/* ======= Vylepšený dizajn pre Poistné udalosti ======= */

/* Kontajner pre Poistné udalosti */
.insurance-container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hlavička stránky */
.header {
    background: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

/* Sekcie */
.section {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    background: #e9ecef;
    transition: 0.3s;
}

.section:hover {
    background: #d6d8db;
}

/* Zoznam poistných udalostí */
.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    padding: 12px;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-list li a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.event-list li a:hover {
    text-decoration: underline;
}

/* Sekcia nahlásenia novej udalosti */
.report-event {
    text-align: center;
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 8px;
    background: #f1f8ff;
}

.report-event p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.btn-report {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.3s;
}

.btn-report:hover {
    background: #0056b3;
}

/* Responzívnosť */
@media (max-width: 768px) {
    .insurance-container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .event-list li {
        flex-direction: column;
        text-align: center;
    }

    .btn-report {
        width: 100%;
    }
}

/* ======= Vylepšený dizajn pre Poistenie (Insurances) ======= */

.insurances-container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sekcia Poistenia */
.insurances-section {
    text-align: center;
    padding: 20px;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Zoznam poistení */
.insurance-list {
    list-style: none;
    padding: 0;
}

.insurance-list li {
    padding: 12px;
    font-size: 20px;
    border-bottom: 1px solid #ccc;
}

.insurance-list li:last-child {
    border-bottom: none;
}

.insurance-list li a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.insurance-list li a:hover {
    text-decoration: underline;
}

/* Sekcia s kontaktom */
.insurance-contact {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-top: 20px;
}

/* Responzívnosť */
@media (max-width: 768px) {
    .insurances-container {
        width: 95%;
        padding: 15px;
    }

    .insurance-list li {
        font-size: 18px;
        text-align: center;
    }
}

/* Kontajner pre prihlasenie */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Nadpis */
.login-container h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Štýly pre vstupné polia */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Tlačidlo prihlásenia */
.login-container button {
    width: 100%;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #0056b3;
}

/* Odkaz na registráciu */
.login-container a {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

.login-container a:hover {
    text-decoration: underline;
}

/* Flash messages */
.flash-message {
    text-align: center;
    color: white;
    width: 90%; /* Zmena z pevnej šírky na % pre lepšiu responzivitu */
    max-width: 960px; /* Stále neprekročí 960px na veľkých obrazovkách */
    margin: 0 auto;
    margin-top: 14px;
    padding: 10px 15px; /* Pridanie paddingu pre lepší vzhľad */
    border-radius: 5px; /* Zaoblené rohy */
    font-size: 1rem; /* Veľkosť textu */
}

/* Success message */
.message-success {
    background: #70b73a;
}

/* Error message */
.message-error {
    background: #d41400;
}

/* Responzivita pre menšie obrazovky */
@media screen and (max-width: 768px) {
    .flash-message {
        width: 95%; /* Väčšia šírka na malých obrazovkách */
        font-size: 0.9rem; /* Mierne menší text */
        padding: 8px 12px; /* Menšie paddingy */
    }
}

@media screen and (max-width: 480px) {
    .flash-message {
        width: 100%; /* Plná šírka */
        font-size: 0.85rem; /* Ešte menší text */
        padding: 6px 10px;
    }
}

/* style.css */

/* Flash správy */
.flash-message {
    text-align: center;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tlačidlá */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: black;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-success {
    border-color: #198754;
    color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

/* Tabuľka */
.table th, .table td {
    vertical-align: middle;
}

/* Vyhľadávacie pole */
#search-input {
    max-width: 300px;
}

.card {
    border-radius: 15px;
    border: 1px solid #ddd;
}

.table th,
.table td {
    vertical-align: middle;
}

.btn-equal {
    min-width: 200px;
    /* height: 50px; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin: initial;
}

.card .row {
    align-items: flex-start;
  }
  .btn-group-custom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

