@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f9fafb;
    color: #111827;
    display: flex;
    flex-direction: row;
    font-size:15px;
    line-height: 21px;
}

html,
body {
    height: 100%;
    min-height: 100%;
}

main {
    margin-left: 260px;
    flex-grow: 1;
    padding: 2em;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    color: white;
    padding: 1rem;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
}


.sidebar nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: #7f8899;
  border-radius: 10px;
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: #081e5c;
}

.sidebar .app-logo{
    margin-bottom: 2em;
    max-width:180px;
    cursor: pointer;

    &:hover {
        opacity: 0.8;
    }
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;          
    overflow-y: auto;
    margin-bottom: 50px;   
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin:0px;
    width: 100%;
}

.sidebar nav .nav-item-title {
    color:rgb(74, 74, 74);
    margin:0px;
    padding:0px;
    font-size:0.9rem;
}

.sidebar nav ul li {
    width: 100%;
    margin: 0.5em 0;
}

.sidebar nav ul li a {
    color: #081e5c;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    transition: background 0.3s;
}

.sidebar nav ul li i {
    margin-right: 0.5em;
    color: #081e5c
}

.sidebar nav ul li a:hover i,
.sidebar nav ul li a.active i {
    color:white;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background-color: #0d1d5d;
    color:white;
}

.sidebar-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding:20px;
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color:#f9fafb;
}

section {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

a {
    color: #0d1d5d;
}

h1 {
    font-weight: 900;
    line-height: 1.6rem;
    color: #081e5c;
}

h1,
h2 {
    margin-bottom: 0.75em;
}

h2 {
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 900;
    color: #7f8899;
}

.loader {
    margin-top:4px;
    margin-bottom:4px;
}

.introduction {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.introduction-close {
    float: right;
    cursor: pointer;
    color: #6b7280;
    font-weight: bold;
    text-decoration: none;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background-color: #081e5c;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover,
.btn:hover {
    background-color: #7f8899;
}

button:active,
.btn:active {
    background-color: #7f8899;
    transform: scale(0.98);
}

button:disabled,
.btn:disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

button.icon-btn,
.btn.icon-btn {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

button:focus-visible {
    outline: none;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-info {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #0ea5e9;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #f59e0b;
}


input[type='text'],
input[type='email'],
input[type='password'],
textarea,
.tagify {
    padding: 0.7rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.7rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #081e5c;
    outline: none;
    box-shadow: 0 2px 8px rgba(13, 29, 93, 0.08);
}

select {
    padding: 0.5em;
    border-radius: 0.5em;
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

.choices {
    overflow: visible!important;
    margin-top:5px;
}

.choices .choices__inner {
    border-radius: 10px;
    border: 1.5px solid #081e5c;
    min-height: auto!important;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    border: none;
    padding: 1rem 0.75rem;
    background: none;
    text-align: left;
}

th {
    background: #f3f4f6;
    color: #0d1d5d;
    font-weight: 600;
}

tr:nth-child(even) td {
    background: #f9fafb;
}

#login-section #login-error {
    margin-bottom: 10px;
}

#login-section form {
    max-width: 400px;
}

#login-section form label {
    font-weight: bold;
}

.tag {
    background: #7f8899;
    color: #0369a1;
    padding: 0.3em 0.8em;
    border-radius: 9999px;
    font-size: 0.95em;
    margin-right: 0.3em;
    display: inline-block;
    font-weight: 500;
}


textarea {
    width: 100%;
    height: 4em;
}


#start-section {
    padding: 30px;
}

#start-section li {
    margin-bottom:10px;
}

#start-section #project-selector {
    border: 1px solid #d1d6e0;
    padding: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    margin-top: 50px;
    background-color: #f9fafb;

}

#start-section #project-selector p {
    margin: 0px;
    font-weight: bold;
    color: #081e5c;
}

#categorize-section label {
    font-weight: bold;
    display: block;
}

#start-section #project-selector select {
    margin-top: 10px;
    width: 100%;
}

#categorize-section #graph-container {
    width: 100%;
    height: 500px;
    margin-top: 2em;
    display: none;
    border:1px solid #d1d5db;
    border-radius: 10px;

}

#categorize-section .tag {
    display: inline-block;
    background-color: #7f8899;
    color: white;
    padding: 0.2em 0.6em;
    margin: 0.1em;
    border-radius: 999px;
    font-size: 0.85em;
    display: inline-block
}

.categorize-form-fields {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

.categorize-form-fields .tagify {
    flex: 1;
}

.categorize-form-fields button {
    white-space: nowrap;
    margin-top:-5px;
}

#categorize-results {
    max-width: 100%;
    overflow-x: auto;
    margin-top:20px;
}

#summarize-section #summarize-style {
    margin-bottom: 15px;
     display: flex;
    align-items: center;
    flex-wrap: wrap; /* Optional für kleine Bildschirme */
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#summarize-section #summarize-style label {
    font-weight: bold;
       white-space: nowrap;
}

#summarize-section #summarize-style select {
    max-width: 200px;
}

#summarize-section #summarize-style button {
      white-space: nowrap;
}


#summarize-section .kapitel h3 {
    margin-bottom: 0.2em;
}

#summarize-section .kapitel p {
    margin-top: 0;
    margin-bottom: 0.5em;
}

#summarize-section .feedback-list {
    padding: 0px;
    margin: 0px;
    margin-top: 20px;
    margin-left: 20px;
}

#summarize-section .feedback-list li {
    margin-bottom: 0.5em;
    list-style-type: none;
    display: block;
    padding: 0px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#summarize-section .kapitel {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

#summarize-section button.btn-toggle {
    background-color: #7f8899;
    font-weight: normal;
}

#chat-section summary {
    margin-top:20px;
    font-weight: bold;
}

#chat-section #chat-loader {
    margin-top:20px;
}

#chat-section #chat-answer li {
    margin-bottom:6px;
}

#surveymodule-section #surveymodule-results-content {
    background-color: #f3f4f6;
    padding: 20px;
	margin-top: 20px;
    border-radius: 10px;
    border-radius: 10px;
}

#ideaboard-section .comment-summary{
    color:rgb(66, 66, 66)
}

#ideaboard-section #ideaboard-idea-summary {
    background-color: #f3f4f6;
    padding: 20px;
    margin-top:20px;
    margin-bottom:20px;
    border-radius: 10px;
}

#ideaboard-section #ideaboard-ideas {
   background-color: #f3f4f6;
   padding: 20px; 
    border-radius: 10px;
}


#ideaboard-section .ideaboard-idea {
    margin-top:15px;
    margin-bottom:15px;
}

#ideaboard-section .ideaboard-idea .idea-title{
    font-weight: bold;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }
}


.chatbot-participantgroup-tags {
    margin-bottom:20px;
}

.chatbot-participantgroup-tags .tag-checkbox {
  display: inline-block;
  margin: 0.25rem;
}

.chatbot-participantgroup-tags .tag-checkbox input[type="checkbox"] {
  display: none; 
}

.chatbot-participantgroup-tags .tag-checkbox label {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: #f5f5f5;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.chatbot-participantgroup-tags .tag-checkbox input[type="checkbox"]:checked + label {
  background: #e5e5e5;
  color: #fff;
  border-color: #e5e5e5;
}

.chatbot-participantgroup-tags .tag-checkbox label:hover {
  background: #111827;
  color:white;
}
