:root {
    /*--prm-color: royalblue;*/
    /*--prm-hover-color: #1419b3;*/
    --prm-color: #0073e6;
    --prm-hover-color: #005bb5;
    --prm-disabled-color: cornflowerblue;
    --sec-color: slategrey;
    --bg-color-light: floralwhite;
    --bg-color-light-hover: #e3e3e3;

    --card-color: var(--prm-color);

    --header-color: #324470;
    --header-color-hover: #2a3a5e;


    --sidebar-width: 70px;
    --topbar-height: 70px;
}
body {
    height: 100%;
    margin: 0;
    background-color: var(--header-color);
}

/* Top Navbar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-color);
    border-bottom: 0.1rem solid var(--sec-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
@media (max-width: 400px) {
    .top-bar{
        width: 100%;
        max-width: 100vw;
    }
}
/* Sidebar Toggle Button */
.sidebar-toggler {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
}

/* Icon User-Dropdown */
#user-Dropdown {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.profileIcon {
    width: 40px;
    height: 40px;
    background-color: #13753d; /* Gray background */
    color: white;
    border-radius: 50%;
    font-weight: normal;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
}
/* Profile Dropdown */
.profile-menu {
    display: none;
    position: absolute;
    top: var(--topbar-height);
    right: 0;
    background: var(--header-color);
    color: var(--bg-color-light);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
}
#languageDropdown button:hover {
    background: var(--header-color-hover);
}
#languageDropdown ul {
    background: var(--bg-color-light);
}
.flag-list {
    color: black;
}
.flag-list:hover {
    cursor: pointer;
    background: var(--bg-color-light-hover);
}
/* flag img */
.flag {
    width: 30px;
    height: 20px;
    margin-left: 10px;
}
.flag-round {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 100%;
}
/* Sidebar Base */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    border-right: 0.1rem solid var(--sec-color);
    background-color: var(--header-color);
    padding-top: 20px;
    transition: all 0.3s ease-in-out;
    transform: translateX(-180px);
    z-index: 900;
}
.sidebar .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 15px;
    gap: 10px;

    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Push .quick-bar to the right */
    width: 100%; /* Ensure full width */
    text-decoration: none;
}
.sidebar .nav-link:hover {
    background-color: var(--header-color-hover);
}
.sidebar .nav-link.active {
    background: var(--header-color-hover);
    cursor: default;
}
.sidebar.open {
    transform: translateX(0);
}
/* Sidebar Compact for Medium Screens */
@media (min-width: 600px) and (max-width: 900px) {
    .sidebar {
        /* show icons */
        transform: translateX(-180px);
    }
}
@media (min-width: 600px) {
    .quick-bar {
        width: 50px;
        display: flex;
        flex-direction: column; /* Stack icon and text vertically */
        align-items: center; /* Center content horizontally */
        text-align: center; /* Ensure text is centered */
        margin-left: auto; /* Push it to the right */
    }
    .quick-bar span {
        display: block;
        font-size: 12px; /* Skaliert mit der Breite */
        white-space: nowrap; /* Verhindert Umbruch */
        overflow: hidden; /* Schneidet überfließenden Text ab */
        text-overflow: ellipsis; /* Zeigt "..." bei zu langem Text */
    }
}
/* Sidebar Hidden for Small Screens */
@media (max-width: 600px) {
    .sidebar {
        transform: translateX(-100%);
    }
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding-top: var(--topbar-height);
    background-color: var(--bg-color-light);
    color: black;
    transition: margin-left 0.3s ease-in-out;
}
.main-content.open {
    margin-left: var(--sidebar-width);
}
@media (max-width: 600px) {
    .main-content {
        margin-left: 0;
    }
    .main-content.open {
        margin-left: 0;
    }
}
.card {
    min-height: calc(100vh - var(--topbar-height));
}
.card-header {
    background-color: var(--card-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-body {
    position: relative;
    background: linear-gradient(40deg, #d1eaff, white);
}

.tool-card {
    background-color: var(--bg-color-light);
}

.btn-primary {
    background-color: var(--prm-color);
    border-color: var(--prm-color);
}
.btn-primary:hover {
    background-color: var(--prm-hover-color);
    border-color: var(--prm-hover-color);
}
.btn-primary:disabled {
    background-color: var(--prm-disabled-color);
    border-color: var(--prm-disabled-color);
}

.btn-secondary {
    background-color: var(--sec-color);
    border-color: var(--sec-color);
}

.btn-success {
    background-color: var(--prm-color);
    border-color: var(--prm-color);
}
.btn-success:hover {
    background-color: var(--prm-hover-color);
    border-color: var(--prm-hover-color);
}

.btn-group {
    background-color: var(--bg-color-light);
}

.timestamp {
    color: var(--sec-color);
    font-size: 0.9em;
    width: 150px;
    text-align: right;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.goToTranscript {
    cursor: pointer;
    background-color: #fff;
}
@media (min-width: 600px) {
    .goToTranscript {
        font-size: larger;
    }
}
.goToTranscript:hover {
    background-color: var(--bg-color-light-hover);
}

.hidden {
    opacity: 0;
}

#dropZone {
    width: 100%;
    min-height: 120px;
    cursor: pointer;
    border: 2px dashed var(--sec-color);
}
#dropZone:hover {
    background-color: var(--bg-color-light-hover);
}

/*for transcript.html*/
.segment-container {
    height: 500px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #ccc;
}
.spacer {
    height: 0; /* dynamically updated */
}
.virtual-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.segment {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s, border 0.3s;
}

/* Keep: Greenish */
.div-keep-deselected {
    border: 2px solid #a3e5b1;
    color: grey;
    cursor: pointer;
}
.div-keep-selected {
    background-color: #c6f6d5;
    border: 2px solid #38a169;
    cursor: pointer;
}

/* Discard: Reddish */
.div-discard-deselected {
    border: 2px solid #feb2b2;
    cursor: pointer;
}
.div-discard-selected {
    background-color: #fed7d7;
    border: 2px solid #e53e3e;
    cursor: pointer;
}
.div-discard-selected .segment-text p {
    text-decoration: line-through;
    color: #a0a0a0;
    /*
    white-space: nowrap;         /* Prevent line breaks
    overflow: hidden;            /* Hide overflow
    text-overflow: ellipsis;     /* Add "..." at the end if it overflows */
}
/* PRICING.HTML --------------------------------------- */
.price-card {
    min-width: 250px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-color-light);
    cursor: pointer;
}
.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

ul.list-unstyled li {
    margin: 0.5rem 0;
}

.bg-secondary {
    color: var(--bg-color-light);
}
/* transcript modal --------------------------------------- */
.modal-content {
    background-color: var(--bg-color-light);
    border-radius: 12px;
}
/* Switch styling */
.form-switch {
    background-color: var(--bg-color-light-hover);
    cursor: pointer;
}
.form-switch label {cursor:pointer;}
.form-switch input {cursor:pointer;}

/* Label styling */
.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}
/* Styling the buttons */
.format-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover effect */
.format-btn:hover {
    background-color: var(--prm-color);
    color: white;
}

/* Active button state */
.format-btn.active {
    background-color: var(--prm-color);
    color: white;
}
/* cookie banner --------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: auto;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    text-align: center;
}

.cookie-banner p {
    margin-bottom: 0.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}