/* Azure Chat & RAG System Styles - Mit lokalen Roboto Fonts */

/* Lokale Font-Definitionen */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/roboto-v30-latin-100.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 100;
    src: url('../fonts/roboto-v30-latin-100italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v30-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/roboto-v30-latin-500italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 900;
    src: url('../fonts/roboto-v30-latin-900italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/dm-serif-display-v15-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DM Serif Display';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/dm-serif-display-v15-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Audiowide';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Audiowide-Regular.ttf') format('truetype');
}

/* CSS-Variablen */
:root {
    --farbe1: #1a4273;
    --farbe3: #009FE3;
    --farbe2: #313131;
    --farbe4: #bfe2ff;
    --farbe5: #80c6ff;
    --farbe6: #ff8200;
    --farbe7: #b35b00;
    --farbe8: #ffe0bf;
    --farbe9: #ffc180;
    --farbebox: #DBEEE8;
    --schrift1: "Roboto", sans-serif;
    --schrift2: "Audiowide", sans-serif;
    --schrift3: "DM Serif Display", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--schrift1);
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: var(--farbe1) 0%;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(26, 66, 115, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    height: 50px;
    width: auto;
    margin-right: 1rem;
}

.header-text h1 {
    font-family: var(--schrift2);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.header-subtitle {
    font-family: var(--schrift1);
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.header-logout {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--schrift1);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Navigation */
.navigation {
    background: white;
    border-bottom: 1px solid #e0e6ed;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: #555;
    font-family: var(--schrift1);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: var(--farbe1);
    background-color: rgba(26, 66, 115, 0.05);
}

.nav-link.active {
    color: var(--farbe1);
    background-color: rgba(26, 66, 115, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--farbe1), var(--farbe3));
    border-radius: 2px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    min-height: calc(100vh - 160px);
}

/* Card Components */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 159, 227, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(26, 66, 115, 0.1);
    transform: translateY(-2px);
}

.card h2 {
    color: var(--farbe1);
    font-family: var(--schrift2);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 3px solid var(--farbe3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card h3 {
    color: var(--farbe1);
    font-family: var(--schrift1);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--farbe1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--schrift1);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 66, 115, 0.3);
    filter: brightness(110%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 159, 227, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(26, 66, 115, 0.15);
    transform: translateY(-4px);
    border-color: #009FE3;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1A4273 0%, #009FE3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-card h4 {
    color: #1A4273;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A4273;
}



.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #009FE3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table th {
    background: linear-gradient(135deg, #1A4273 0%, #009FE3 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e6ed;
}

.table tr:hover {
    background-color: rgba(0, 159, 227, 0.05);
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    border-left: 4px solid;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-color: #009FE3;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #009FE3;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        text-align: center;
        border-radius: 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

/* Azure Theme Accents */
.azure-gradient {
    background: linear-gradient(135deg, #1A4273 0%, #009FE3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.azure-border {
    border: 2px solid #009FE3;
}

.azure-bg {
    background: linear-gradient(135deg, #1A4273 0%, #009FE3 100%);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}