/* Welcome Page Styles - OTV Modul */

/* ============================================
   Layout & Container
   ============================================ */

.welcome-page-body {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    padding: 1rem;
}

.welcome-main-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    min-height: calc(100vh - 2rem);
}

/* ============================================
   Navigation Sidebar
   ============================================ */

.welcome-sidebar-nav {
    flex-shrink: 0;
    width: 250px;
    position: sticky;
    top: 2rem;
    height: fit-content;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-sidebar-item {
    margin-bottom: 0.5rem;
}

.welcome-sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.welcome-sidebar-link:hover {
    background-color: #f3f4f6;
}

.welcome-sidebar-link.active {
    background-color: #3b82f6;
    color: white;
}

/* ============================================
   Main Content Area
   ============================================ */

.welcome-main-content {
    flex: 1;
    min-width: 360px;
    max-width: 70%;
    margin: 3rem auto;
}

/* ============================================
   Header Section
   ============================================ */

.welcome-header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.welcome-header-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-header-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.welcome-widget-controls {
    margin-bottom: 1.5rem;
}

.welcome-controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-control-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.welcome-control-label-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.welcome-clinic-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: black;
    background: white;
}

.welcome-clinic-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

.welcome-clinic-select option {
    color: black;
}

.welcome-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-btn-primary {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.welcome-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.5);
}

.welcome-btn-primary:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.welcome-btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.welcome-btn-secondary {
    background: linear-gradient(to right, #16a34a, #10b981);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-secondary:hover {
    background: linear-gradient(to right, #15803d, #059669);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.welcome-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.5);
}

.welcome-btn-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    margin-right: 0.5rem;
}

/* ============================================
   Embed Widget Example Section
   ============================================ */

.welcome-embed-section {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.welcome-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.welcome-embed-title {
    margin: 0;
    font-size: 1.5rem;
    color: #111827;
    display: flex;
    align-items: center;
}

.welcome-embed-title svg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #111827;
}

.welcome-embed-code-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.welcome-embed-code-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #374151;
}

.welcome-embed-code-pre {
    background-color: #f9fafb;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.welcome-embed-code-pre code {
    font-family: 'Courier New', monospace;
}

.welcome-btn-copy {
    background-color: #4b5563;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-copy:hover {
    background-color: #374151;
}

.welcome-btn-copy svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.welcome-embed-test-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.welcome-embed-test-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #374151;
}

.welcome-embed-test-description {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.welcome-embed-test-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.welcome-btn-test {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-test:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.welcome-btn-test svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.welcome-btn-error {
    background: linear-gradient(to right, #dc2626, #ec4899);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-error:hover {
    background: linear-gradient(to right, #b91c1c, #db2777);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.welcome-btn-error svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.welcome-test-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.welcome-test-label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
}

.welcome-test-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    color: #111827;
    width: 150px;
}

.welcome-test-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

.welcome-test-input-wide {
    width: 200px;
}

/* ============================================
   Privacy Policy Section
   ============================================ */

.welcome-privacy-section {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.welcome-privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.welcome-privacy-title {
    margin: 0;
    font-size: 1.5rem;
    color: #111827;
    display: flex;
    align-items: center;
}

.welcome-privacy-title svg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #111827;
}

.welcome-privacy-info-box {
    background-color: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.welcome-privacy-info-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
}

.welcome-privacy-info-text {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.welcome-privacy-clauses-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

.welcome-privacy-clause-container {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.welcome-privacy-clause-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.welcome-privacy-clause-content {
    line-height: 1.6;
    font-size: 0.9rem;
    color: #111827;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.welcome-privacy-clause-content p {
    margin-bottom: 0.75rem;
}

.welcome-privacy-clause-content p:last-child {
    margin-bottom: 0;
}

.welcome-privacy-clause-content strong {
    font-weight: 600;
}

.welcome-privacy-clause-content br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.welcome-btn-copy-klausel {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
}

.welcome-btn-copy-klausel:hover {
    background-color: #1d4ed8;
}

.welcome-btn-copy-klausel svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ============================================
   Widget Container
   ============================================ */

/* Widget container styles are handled by the widget itself */

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .welcome-main-container {
        flex-direction: column;
    }

    .welcome-sidebar-nav {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .welcome-privacy-clauses-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .welcome-header-title {
        font-size: 1.875rem;
    }

    .welcome-header-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .welcome-header-subtitle {
        font-size: 1rem;
    }

    .welcome-btn-primary,
    .welcome-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .welcome-embed-section,
    .welcome-privacy-section {
        padding: 1.5rem;
    }

    .welcome-embed-code-container,
    .welcome-embed-test-container,
    .welcome-privacy-clause-container {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .welcome-page-body {
        padding: 0.5rem;
    }

    .welcome-main-container {
        min-height: calc(100vh - 1rem);
    }

    .welcome-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .welcome-btn-primary,
    .welcome-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .welcome-embed-test-buttons {
        flex-direction: column;
    }

    .welcome-btn-test,
    .welcome-btn-error {
        width: 100%;
        justify-content: center;
    }

    .welcome-test-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-test-input {
        width: 100%;
    }
}

/* ============================================
   Dark Mode Support (if needed)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .welcome-embed-section,
    .welcome-privacy-section {
        background-color: #1f2937;
    }

    .welcome-embed-title,
    .welcome-privacy-title {
        color: #f9fafb;
    }

    .welcome-embed-title svg,
    .welcome-privacy-title svg {
        color: #f9fafb;
    }

    .welcome-embed-code-container,
    .welcome-embed-test-container,
    .welcome-privacy-clause-container {
        background-color: #374151;
        border-color: #4b5563;
    }

    .welcome-embed-code-title,
    .welcome-embed-test-title,
    .welcome-privacy-clause-title {
        color: #e5e7eb;
    }

    .welcome-embed-test-description {
        color: #d1d5db;
    }

    .welcome-embed-code-pre {
        background-color: #111827;
        color: #f9fafb;
        border-color: #4b5563;
    }

    .welcome-test-label {
        color: #e5e7eb;
    }

    .welcome-test-input {
        background-color: #1f2937;
        color: #f9fafb;
        border-color: #4b5563;
    }

    .welcome-privacy-clause-content {
        color: #f9fafb;
    }
}

