:root {
    --main-color: #0B4974;
    --sec-color: #05AFF0;
    --orange-color: #FF8C00;
    --bg-color: #fff;
    --text-color: #333;
    --outer-bg: #e8e8e8;
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--outer-bg);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Boxed Layout Container */
.boxed-wrapper {
    display: flex;
    width: 100%;
    max-width: 1150px;
    min-height: 100vh;
    margin: 0px 20px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--main-color);
    margin-top: 0;
}

a {
    color: var(--sec-color);
    text-decoration: none;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #fff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--main-color);
    text-decoration: none;
    text-align: center;
    display: block;

    border-bottom: 2px solid var(--sec-color);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #f5f5f5;
}

.sidebar nav a {

    text-decoration: none;
    padding: 6px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: #6A6A6A;
    font-size: medium;
}

.sidebar nav a:hover {
    background-color: #fff;
    color: var(--sec-color);
    border-left: 3px solid var(--sec-color);
    padding-left: 20px;
}

/* Alphabet Navigation */
.alphabet-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.alphabet-nav h3 {
    font-size: 16px;
    color: var(--main-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.alphabet-grid a {
    background-color: var(--sec-color);
    color: #fff;
    text-decoration: none;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: none;
}

.alphabet-grid a:hover {
    background-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.alphabet-grid a:active {
    transform: translateY(0);
}

/* Language Selector */
.language-selector {
    /* margin-top: auto; */
    padding-top: 20px;
    margin-bottom: 10px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
}

.lang-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 2px 2px;
    border-radius: 3px;
    background-color: #05aff0;
}

.lang-link:hover {
    background-color: var(--main-color);
}

.lang-separator {
    color: #999;
    margin: 0 0px;
    font-weight: 300;
}

/* Search Form Styling */
.search-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--sec-color);
    box-shadow: 0 0 0 3px rgba(5, 175, 240, 0.1);
}

.search-button {
    padding: 12px 25px;
    background-color: var(--sec-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.search-button:active {
    transform: translateY(0);
}

.clear-search {
    padding: 12px 20px;
    background-color: #6c757d;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.clear-search:active {
    transform: translateY(0);
}

.show-all-btn {
    white-space: nowrap;
}

/* Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    min-width: 0;
}

/* Top Header Bar */
.top-bar {
    background: linear-gradient(135deg, var(--main-color) 0%, #084060 100%);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-title {
    flex: 0 0 auto;
}

/* Header Search Wrapper */
.header-search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Header Search Form */
.header-search-form {
    display: flex;
    gap: 0;
    align-items: center;
}

.header-search-input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.header-search-button {
    background-color: var(--orange-color);
    border: none;
    color: #fff;
    padding: 0 15px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 37px;
}

.header-search-button:hover {
    background-color: #8a4d2b;
}

.header-search-button:active {
    transform: scale(0.95);
}

.header-search-button svg {
    width: 20px;
    height: 20px;
}

.search-hint {
    display: flex;
}

.search-hint a {
    background-color: var(--orange-color);
    border: none;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    text-decoration: none;
    font-size: 16px;
}

.search-hint a:hover {
    background-color: #e66b00;
    color: #fff;
}

.header-help-button:hover {
    background-color: #ff7700;
}

.header-help-button:active {
    transform: scale(0.95);
}

.header-help-button svg {
    width: 20px;
    height: 20px;
}

/* Main Content Area */
.main-content {
    flex: 1;

    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#view-content,
#vyklad {
    margin-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

/* Table Styling */
.entries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.entries-table thead {
    background-color: var(--main-color);
    color: #fff;
}

.entries-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--sec-color);
}

.entries-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.entries-table tbody tr:hover {
    background-color: #f9f9f9;
}

.entries-table td {
    padding: 12px 15px;
}

.entries-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.entries-table tbody tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

/* Footer Styling */
.footer {
    background-color: #fff;
    color: #666;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column-wide {
    flex: 1;
}

.footer-label {
    font-style: italic;
    font-weight: 400;
    color: var(--main-color);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer Styling */
.footer-logo-img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-text {
    background-color: #0B4974;
    color: #fff;
    padding: 15px 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.footer-text a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 5px;
}

.footer-text a:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer-text img {
    vertical-align: middle;
}

.nav.nav-pills.nav-stacked.list-group,
.list-group {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Responsive adjustments for footer text */
@media (max-width: 600px) {
    .footer-text {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-text .left,
    .footer-text .right {
        text-align: center;
        width: 100%;
    }
}

/* Autori Page Styling */
.block-center {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.authors-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.authors-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.authors-table tr:last-child td {
    border-bottom: none;
}

.authors-table tr:hover {
    background-color: #f9f9f9;
}

.authors-table .row-inactive {
    background-color: #f7f7f7;
    color: #999;
}

.authors-table .row-inactive td {
    color: #999;
    font-style: italic;
}

.nav.nav-pills.nav-stacked.list-group li {
    margin-bottom: 6px;
}

.nav.nav-pills.nav-stacked.list-group li a {
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    color: var(--sec-color);
    padding: 10px 14px;
    border-radius: 6px;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}

.nav.nav-pills.nav-stacked.list-group li a:hover {
    background: #f2f2f2;
    color: #000;
}

.nav.nav-pills.nav-stacked.list-group li a.active {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

#subtitle {
    height: 40px;
    background-color: #05AFF0;
    font-size: medium;
    color: white;
}

#subtitle h2 {
    font-size: medium;
    color: white;
    text-align: left;
    line-height: 40px;
    margin-left: 20px;
}

#upper_part {
    min-height: 400px;
    background-image: url(../image/landscape.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#upper_text {
    font-family: 'Arial';
    font-size: x-large;
    font-weight: bold;
    color: #0B4974;
    line-height: 1.3;
    background: white;
    background: -webkit-linear-gradient(rgba(255, 0, 0, 0), rgba(255, 255, 255, 255));
    background: -o-linear-gradient(rgba(255, 0, 0, 0), rgba(255, 255, 255, 255));
    background: -moz-linear-gradient(rgba(255, 0, 0, 0), rgba(255, 255, 255, 255));
    background: linear-gradient(rgba(255, 0, 0, 0), rgba(255, 255, 255, 255));
    position: absolute;
    bottom: 0;
    height: 100px;
    width: 100%;
}

#ul_upper_text {
    font-family: 'Arial';
    font-size: large;
    font-weight: normal;
    color: #0B4974;
}

#upper_text2 {
    font-family: 'Arial';
    font-size: large;
    line-height: 1.3;
    font-weight: normal;
    color: #0B4974;
    line-height: 70%;
}

#upper_text3 {
    font-family: 'Arial';
    font-size: 90%;
    color: #000000;
    font-weight: normal;
    line-height: 70%;
}

.with-padding {
    padding: 10px;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .boxed-wrapper {
        margin: 10px;
    }
}

@media (max-width: 768px) {
    body {
        align-items: stretch;
    }

    .boxed-wrapper {
        margin: 0;
        max-width: 100%;
        flex-direction: column;
        box-shadow: none;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }

    .sidebar .logo {
        margin-bottom: 20px;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar nav a {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }

    .alphabet-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .search-form {
        flex-wrap: wrap;
    }

    .top-bar {
        font-size: 1.1em;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .top-bar-title {
        text-align: center;
        font-size: 0.95em;
    }

    .header-search-wrapper {
        width: 100%;
        justify-content: center;
    }

    .header-search-input {
        flex: 1;
        width: auto;
    }

    .main-content {
        margin: 10px;
        padding: 20px;
    }

    .entries-table {
        font-size: 14px;
    }

    .entries-table th,
    .entries-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .sidebar nav {
        flex-direction: column;
    }

    .sidebar nav a {
        width: 100%;
    }

    .alphabet-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-button,
    .clear-search {
        width: 100%;
    }

    .main-content {
        padding: 15px;
    }

    .entries-table {
        font-size: 12px;
    }

    .entries-table th,
    .entries-table td {
        padding: 6px 8px;
    }

    .header-search-wrapper {
        flex-direction: column;
    }



    .header-search-form {
        width: 100%;
    }

    .header-search-input {
        width: 100%;
        /* border-radius handling handled by main css */
    }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    .footer-column-wide {
        flex: none;
    }
}

.left {
    text-align: left;
    float: left;
}

.right {
    text-align: right;
    float: right;
}