body {
    background-color: #f0f4f8;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 30px;
    color: #000;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.topbar {
    position: sticky;
    top: 0;
    background-color: #f0f4f8;
    z-index: 20;
    transition: all 0.3s ease;
    padding-bottom: 0rem !important; 
}

.topbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

.topbar.scrolled h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.topbar.scrolled h3 {
    font-size: 1rem;
}

.topbar.scrolled select {
    padding: 5px 10px;
    margin-bottom: 10px;
}

body.dark-mode .topbar {
    background-color: #1f1f22;
}

h1 {
    display: inline-block;
    color: #002060;
    margin-right: 15px;
    margin-top: 0;
    font-size: 2.6rem;
    margin-bottom: 10px;
    transition: font-size 0.3s ease;
}

h3 {
    display: inline-block;
    color: #0056b3;
    margin-top: 0;
    font-size: 1.8rem;
}

.icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.25s ease;
    
    flex-shrink: 0;
}

.menu {
    position: absolute;    
    right: 40px;
    top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 30px;
}

select {
    border-radius: 8px;
    border: 1px solid #666;
    padding: 8px 14px;
    margin-right: 15px;
    margin-bottom: 10px;
    background-color: white;
    font-family: inherit;
    cursor: pointer;

    transition: all 0.2s ease;
}

select:hover {
    border-color: #3b82f6;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.table-container {
    width: 55%;
    margin-top: 20px;
}

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

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

td:first-child,
th:first-child {
    text-align: left;
    width: 70%;
}

tr {
    transition: 0.15s ease;
    border-radius: 8px;
}

tbody tr:hover {
    background-color: rgba(0, 32, 96, 0.05);
    transform: translateX(4px);
}

input[type='radio'] {
    box-sizing: border-box;
    appearance: none;
    background: white;
    outline: none;
    border: 1.5px solid #666;
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.15s ease;
}

input[type='radio']:hover {
    border-color: #3b82f6;
}

input[type='radio']:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.status-icon {
    height: 25px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: 0.2s ease;
}

.overview {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);    
    position: fixed;
    top: 120px;
    right: 40px;
    width: 320px;
    z-index: 100;

    background: linear-gradient(
        180deg,
        #9ac2f4 0%,
        #8ab6ef 100%
    );

    border-radius: 22px;
    padding: 20px;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    z-index: 100;
    transition: all 0.25s ease;
}

#pocitadlo {
    margin: 0 0 10px 0;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
}

.overview-inner {
    background-color: #f8fafd;

    border-radius: 18px;
    padding: 15px;
    min-height: 250px;

    font-size: 18px;
    line-height: 1.6;

    transition: all 0.25s ease;
}

/* PROGRESS BAR */

.progress-bar-container {
    background-color: rgba(255,255,255,0.7);
    border-radius: 999px;
    height: 16px;
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(
        90deg,
        #60a5fa 0%,
        #3b82f6 100%
    );
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

th:not(:first-child),
td:not(:first-child) {
    width: 20px;
}

@media(max-width: 1000px){
    .menu {
        right: 40px;
        top: 30px;
    }

    h1{
        position: absolute;
        top: 20px;
        left: 25px;
    }

    rok {
        position: absolute;
        top: 35px;
        left: 355px;
    }
    
    .overview
    {   
        top:160px;
        width: 260px;
    }

    select {
        margin-top:20px;
        margin-left: -10px;
    }
}

@media(max-width: 850px){
    
    table{
       max-width: 400px
    }
    .overview
    {   
        top:160px;
        width: 200px;
    }
}

/*cookie popup*/
#consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

#consent-popup {
    background: #ffffff;
    border: 3px solid #757575;
    border-radius: 25px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease; 
}

#consent-popup:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.consent-icon img {
    width: 80px;
    height: auto;
    transition: transform 0.5s ease;
}

#consent-popup:hover .consent-icon img {
    transform: rotate(15deg);
}

.consent-text {
    color: #0033aa;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

.consent-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

#consent-popup button {
    flex: 1;
    padding: 12px;
    border-radius: 20px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #000;
    border: 1px solid #999 !important;
}
.btn-secondary:hover {
    background-color: #d0d0d0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #e2eeff;
    color: #000;
    border: 2px solid #4a90e2 !important;
}
.btn-primary:hover {
    background-color: #cce0ff;
    border-color: #357abd !important;
    transform: scale(1.05);
}

body.dark-mode #consent-popup {
    background: #2d2d2d;
    border-color: #5b21b6;
    outline: 2px solid rgba(91, 33, 182, 0.3);
}

body.dark-mode #consent-popup:hover {
    outline: 3px solid #8b5cf6;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

body.dark-mode .consent-text {
    color: #ffffff;
}

body.dark-mode .consent-icon img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(48%) saturate(6192%) hue-rotate(261deg) brightness(83%) contrast(98%);
    drop-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

body.dark-mode .btn-secondary {
    background-color: #4a4a4a;
    color: #fff;
    border-color: #666 !important;
}
body.dark-mode .btn-secondary:hover {
    background-color: #5a5a5a;
}

body.dark-mode .btn-primary {
    background-color: #ffffff;
    color: #000;
    border-color: #8b5cf6 !important;
}
body.dark-mode .btn-primary:hover {
    background-color: #f3f4f6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

/*darkmode*/

body.dark-mode {
    background-color: #1f1f22;
    color: #f3f4f6;
}

body.dark-mode h1 {
    color: #ffffff;
}

body.dark-mode h3 {
    color: #c4b5fd;
}

body.dark-mode .icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

body.dark-mode .status-icon {
    filter:
        brightness(0)
        saturate(100%)
        invert(73%)
        sepia(32%)
        saturate(1346%)
        hue-rotate(219deg)
        brightness(101%)
        contrast(96%);
}

body.dark-mode select {
    background-color: #121214;
    color: #f3f4f6;
    border: 1px solid #3f3f46;
}

body.dark-mode select:hover {
    border-color: #8b5cf6;
}

body.dark-mode select:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

body.dark-mode table {
    color: white;
}

body.dark-mode td {
    color: #f3f4f6;
}

body.dark-mode tbody tr:hover {
    background-color: rgba(255,255,255,0.03);
}

body.dark-mode input[type='radio'] {
    background: #18181b;
    border: 1.5px solid #71717a;
}

body.dark-mode input[type='radio']:hover {
    border-color: #8b5cf6;
}

body.dark-mode input[type='radio']:checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

body.dark-mode .overview {
    background: linear-gradient(
        180deg,
        #4c1d95 0%,
        #3b136f 100%
    );

    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode .overview-inner {
    background-color: #6d4bc3;

    border-radius: 18px;

    color: white;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06);
}

body.dark-mode #pocitadlo {
    color: white !important;
    font-weight: 700;
}

body.dark-mode .progress-bar-container {
    background-color: rgba(255,255,255,0.12);
}

body.dark-mode .progress-bar-fill {
    background: linear-gradient(
        90deg,
        #c4b5fd 0%,
        #8b5cf6 100%
    );
}

body.dark-mode b,
body.dark-mode span {
    color: white;
}

body.dark-mode::-webkit-scrollbar {
    width: 10px;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #1f1f22;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #5b21b6;
    border-radius: 10px;
}

footer {
    width: 100%;
    margin-top: 40px;
    padding: 15px 0 5px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #4b5563;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: transparent;
    transition: all 0.25s ease;
}

footer b {
    font-weight: 600;
    color: #002060;
}

body.dark-mode footer {
    color: #9ca3af;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: transparent;
}

body.dark-mode footer b {
    color: #c4b5fd;
}

.light-mode-pdf, 
.light-mode-pdf *, 
body.dark-mode .light-mode-pdf, 
body.dark-mode .light-mode-pdf * {
    color: #000000 !important;
    background-color: transparent !important;
}

.light-mode-pdf table {
    background-color: #ffffff !important;
}
