/* Add these media queries and modify existing ones */

/* Base styles for all screen sizes */
.body-container {
    padding: 20px;
    transition: margin-left 0.3s ease;
    background-color: #fafafd;
}

/* Large screens (default) */
.rz-sidebar.rz-sidebar {
    width: 280px !important;
    transition: all 0.3s ease !important;
}
body {
    overflow: hidden;
}
/* Medium screens */
@media (max-width: 1024px) {
    .body-container {
        margin-left: 10%;
    }

    .rz-sidebar.rz-sidebar {
        width: 240px !important;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .body-container {
        margin-left: 0;
        padding: 15px;
    }

    .rz-sidebar.rz-sidebar {
        width: 200px !important;
    }

    .logout, .login {
        margin-right: 10px;
        margin-top: 3px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .body-container {
        margin-left: 0;
        padding: 10px;
    }

    .rz-sidebar.rz-sidebar {
        width: 100% !important;
        transform: translateX(-100%);
    }

    .rz-sidebar.rz-sidebar.active {
        transform: translateX(0);
    }


    .rz-menu .rz-navigation-item-link {
        padding: 0.75rem;
        font-size: 14px;
    }
}

.logout, .login {
    margin-left: auto;
margin-right: 15px;
margin-top: 5px

}


textarea {
    height: 200px;
}

.k-dropdownlist {
    width: 446px;
    display: flex;
}

.nav-status {
    padding: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

    .status-dot.active {
        background-color: #2ecc71;
    }


.rz-header {
    background-color: #f5f5fb;
    min-height: var(--rz-header-min-height);
    border-bottom: var(--rz-header-border);
    color: var(--rz-header-color);
    box-shadow: none;
}

.k-input-solid {
   /* border-color: color-mix(in srgb, var(--kendo-color-on-app-surface, #212121) 44%, transparent);*/
    color: var(--kendo-color-on-app-surface, #212121);
    /*background-color: var(--kendo-color-surface, #f5f5f5);*/
}

.k-input-solid, .k-picker-solid {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-width: 1px 0;
    border-top-color: rgba(0, 0, 0, 0) !important;
}


.dashboard-container {
    display: flex;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    gap: 20px;
    margin: 10px 10px 10px 0px;
}



h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

h3 {
    font-size: 18px;
    font-weight: normal;
    color: #555;
}

.metric-card {
    /* text-align: center; */
  
    border: 1px solid #ccc;
    padding: 10px;
    /*border-radius: 10px;*/
    box-shadow: 2px 2px 10px rgb(232 232 250);
    border-color: #dedeff;
}


.k-button-solid-base {
    border-color: var(--kendo-color-base, #e8e8fa);
    color: #000000;
    /* background-color: #e8e8fa; */
    /* background-image: none; */
    box-shadow: 2px 2px 10px rgb(232 232 250);
}

.tenant-header {
    background-color: #3f51b5;
    /* padding: 10px 20px; */
    /* border-bottom: 1px solid #dee2e6; */
    /*text-align: center;*/
    /* margin-left: auto; */
   
    color: coral;
}

    .tenant-header h3 {
        margin: 0;
        padding: 10px 0;
        color: white;
        font-size: 1.2rem;
        font-weight: 500;
        margin-top: 100%;
    }

.border-bottom-custom {
    border-bottom: solid;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    border-bottom-color: #3f51b547;
}


.card-title-text-custom {
    font-size: x-large;
    font-weight: 300;
}

.feedbacks-thumble-color {
    background-color: #0B4242;
}
.anfragen-thumble-color {
    background-color: #0B3142;
}


.tokens-thumble-color {
    background-color: #16536E;
}

.export-dashboard {
    background: linear-gradient(to bottom, #f5f7fa, #ffffff);
}

.export-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.export-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rz-shadow-5);
}

.selected-format {
    border-color: var(--rz-primary) !important;
    background-color: var(--rz-primary-lighter);
}

.format-option {
    cursor: pointer;
    transition: all 0.2s;
    flex-basis: calc(50% - 0.5rem);
}

.format-option:hover {
    background-color: var(--rz-secondary-lighter);
}

.export-button {
    transition: all 0.2s;
}

.export-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--rz-shadow-4);
}

@media (max-width: 768px) {
    .format-option {
        flex-basis: 100%;
    }
}

.k-listbox{
    height: 400px;
}

#first-listbox {
    width: 300px;
}

#connected-listbox {
    margin-left: 0.6em;
    width: 300px;
}

.demo-section label {
    margin-bottom: 5px;
    font-weight: bold;
    display: inline-block;
}

.listbox-container {
    display: flex;
    flex-direction: column;
}

.labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.listboxes {
    display: flex;
    justify-content: space-between;
}

.k-listbox {
    height: 300px;
}

.selected-format {
    background-color: var(--rz-primary-lighter);
    border-color: var(--rz-primary) !important;
}



.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-family: Arial, sans-serif;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animated-dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: black;
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 black, .5em 0 0 black;
    }
}

.float-left {
    float: left;
}


.knowledge-base-dialog .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.knowledge-base-dialog .text-danger {
    font-size: 0.875rem;
  
}
    
.source-selection-btn {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
    
.source-selection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
    
.source-selection-btn .fw-bold {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.inline-fields {
    padding: 12px;
    gap: 7rem;
    margin-top: 6px;
}
    
.inline-fields .form-group {
    flex: 1;
}
    
.question-section {

       
    padding: 1.5rem;
    margin: 1.5rem 0;
   
}

.action-buttons {
    display: flex;
    gap: 3rem;
    justify-content: center;
}


.k-window-titlebar-actions {
    margin-block: -5em;
    /* margin-inline: 0; */
    margin-inline-end: calc(var(--kendo-spacing-4, 1rem) - var(--kendo-spacing-6, 1.5rem));
    line-height: 1;
    display: flex;
    flex-flow: row nowrap;
    flex-shrink: 0;
    /* align-items: baseline; */
    position: relative;
    /* vertical-align: top; */
    margin-left: 320px;
    margin-top: -98px;
}
  
.loading-dots span {
    animation: dots 1.5s infinite;
    opacity: 0;
    display: inline-block;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.5s; }
.loading-dots span:nth-child(3) { animation-delay: 1s; }
@keyframes dots {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
 .hide-pagination-info .k-pager-info {
        display: none !important;
    }
    
    /* Styles for marked for deletion items */
    .marked-for-deletion {
        background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(220, 53, 69, 0.1));
        border-left: 4px solid #dc3545;
        opacity: 0.7;
        transition: all 0.3s ease-in-out;
        position: relative;
        overflow: hidden;
    }
    
    .marked-for-deletion::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.2), transparent);
        animation: sweep 2s infinite;
    }
    
    .marked-for-deletion .k-grid-cell {
        text-decoration: line-through;
        color: #6c757d;
    }
    
    .deletion-badge {
        background: #dc3545;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: bold;
        animation: pulse 1.5s infinite;
        display: inline-block;
        margin-left: 8px;
    }
    
    @@keyframes sweep {
        0% { left: -100%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }
    
    @@keyframes pulse {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.05); opacity: 0.8; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
    
    @@keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    
.tooltip-content {
    max-width: 300px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.4;
}

.tooltip-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    color: #ffffff;
}

/* Custom styling for Telerik tooltip */
.k-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.k-tooltip-content {
    background: transparent !important;
    padding: 0 !important;
}


.status-processing {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    animation: pulse-processing 2s infinite;
    transition: all 0.3s ease-in-out;
}

    .status-processing .status-text {
        color: #856404 !important;
        font-weight: 600;
        animation: fade-in-out 1.5s ease-in-out infinite;
    }

@keyframes pulse-processing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.status-transition {
    transition: all 0.5s ease-in-out;
    transform: scale(1.02);
}

.marked-for-deletion {
    background-color: #f8d7da !important;
    border-left: 4px solid #dc3545 !important;
    opacity: 0.7;
    text-decoration: line-through;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.processing-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffc107;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-dots span {
    animation: loading-dots 1.4s infinite ease-in-out both;
    display: inline-block;
}

    .loading-dots span:nth-child(1) {
        animation-delay: -0.32s;
    }

    .loading-dots span:nth-child(2) {
        animation-delay: -0.16s;
    }

    .loading-dots span:nth-child(3) {
        animation-delay: 0s;
    }

@keyframes loading-dots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Login Styling - Not Authorized*/
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a66c2 0%, #1e3a8a 100%);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #333;
    margin: 0;
    font-weight: 600;
    font-family: var(--rz-text-font-family);
}

.login-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: var(--rz-text-font-family);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0a66c2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #666;
    font-family: var(--rz-text-font-family);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.error-text {
    color: #dc3545;
    font-family: var(--rz-text-font-family);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-button {
    width: 100%;
    height: 50px;
    font-size: 1.1rem;
    font-family: var(--rz-text-font-family) !important;
}

/* Zusätzlich: Alle p-Tags in der login-content sicherstellen */
.login-content p {
    font-family: var(--rz-text-font-family);
}


.mc-d-flex{
        display: flex;
    align-items: center;
    gap: 0.5rem;
}
}