/* VPBot - Main Stylesheet */
/* Shared styles for both email templates and web pages */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --link-color: #0891b2;        /* Neue Variable für Links */
    --link-hover: #0e7490;        /* Neue Variable für Link-Hover */
    --secondary-color: #6b7280;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-email: 0 2px 10px rgba(0, 0, 0, 0.3);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-alt);
    margin: 0;
    padding: 0;
}

/* Email-specific body styling */
body.email-body {
    padding: 20px;
    background-color: var(--background-alt);
}

/* mobile as standard */
body.email-body {
    padding: 0;
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2.25rem;
    font-weight: 300;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.asterisk {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-email {
    max-width: 1000px; /* Geändert von 95vw zu 600px */
    margin: 0 auto;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-email);
    overflow: hidden;
}

/* mobile as standard */
.container-email {
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 300;
}

/* Navigation */
.nav {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--link-color);
    text-decoration: none;
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 230px);
}

.content {
    padding: 0 30px;
}

/* Email-specific content padding */
.email-body .content {
    padding: 5px 30px 0 30px;
}

/* Cards */
.card {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Allow footnotes to show outside cards */
.card:has(.footnote),
.card-body:has(.footnote) {
    overflow: visible;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-light);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Forms */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control:disabled {
    background-color: var(--background-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--error-color);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #047857;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.alert-info {
    background-color: #dbeafe;
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Lists */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.event-list li {
    background-color: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Code Blocks */
code {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

pre {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    overflow: auto;
    scrollbar-gutter: auto;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.code-block {
    background-color: var(--background-light);
    padding: 1rem;
    padding-right: 3rem; /* Extra space for copy button */
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
    overflow: auto;
    scrollbar-gutter: auto;
    position: relative;
}

.code-block pre {
    border-left: none;
    padding: 0;
    background: none;
    margin-right: 0; /* Ensure pre doesn't extend into button area */
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.copy-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.copy-btn.copied {
    background: var(--success-color, #22c55e);
    color: white;
    border-color: var(--success-color, #22c55e);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.code-inline {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Footnotes/Tooltips - Streamlined Version */
.footnote {
    position: relative;
    display: inline-block;
    margin-left: 2px;
    cursor: help;
}

.footnote-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    vertical-align: super;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footnote-trigger:hover,
.footnote-trigger:active {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.footnote-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 0.75rem 1rem;
    background: var(--text-primary);
    color: var(--background);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: normal;
    max-width: 300px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    pointer-events: none;
}

.footnote-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

/* Show footnote on hover (desktop) or when active (mobile) */
.footnote:hover .footnote-content,
.footnote.active .footnote-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
    pointer-events: auto;
}

/* Mobile/Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .footnote-trigger {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .footnote-content {
        max-width: calc(100vw - 2rem);
        min-width: 280px;
        width: 85vw;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Edge positioning - simplified */
.footnote.edge-left .footnote-content {
    left: 0;
    transform: translateX(0);
}

.footnote.edge-left:hover .footnote-content,
.footnote.edge-left.active .footnote-content {
    transform: translateX(0) translateY(-4px);
}

.footnote.edge-left .footnote-content::after {
    left: 20px;
    transform: translateX(0);
}

.footnote.edge-right .footnote-content {
    right: 0;
    left: auto;
    transform: translateX(0);
}

.footnote.edge-right:hover .footnote-content,
.footnote.edge-right.active .footnote-content {
    transform: translateX(0) translateY(-4px);
}

.footnote.edge-right .footnote-content::after {
    right: 20px;
    left: auto;
    transform: translateX(0);
}

.footnote code {
    padding-top: 0.15rem;
}

/* About Pages Specific Styles */
.contact-info {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

.feature-item {
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.feature-item h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.feature-item p {
    margin: 0;
    color: var(--text-secondary);
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.team-member h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.team-member p {
    margin: 0;
    color: var(--text-secondary);
}

/* Enhanced grid for about pages */
@media (min-width: 768px) {
    .workflow-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    /* Special case for 3 steps on homepage */
    .workflow-steps:has(.workflow-step:nth-child(3):last-child) {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tables */
.table {
    background-color: var(--background);
    border-collapse: collapse;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th, 
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.table th {
    background-color: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table tr:hover {
    background-color: var(--background-light);
}

.table tr:last-child td {
    border-bottom: none;
}

.table code {
    background-color: var(--background-alt);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.error-highlight {
    color: var(--error-color);
    font-weight: 700;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Footer */
.footer {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--link-color);
}

.footer a:hover {
    color: var(--link-hover);
}

/* Email-specific styles */
.intro-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-align: center;

    padding-bottom: 5px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.info-list-container {
    text-align: center;
    margin: 0.5rem 0;
}

.info-list {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding: 0;
}

.error-list-container {
    text-align: center;
    margin: 0.5rem 0;
}

.error-list {
    display: inline-block;
    text-align: left;
    padding: 0;
    list-style: none;
}

.error-list li {
    background-color: #fee2e2;
    border-left: 4px solid var(--error-color);
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-section {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.closing-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.emoji-text {
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .main {
        padding: 2rem 0;
        min-height: calc(100vh - 290px);
    }
    
    .content {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Zusätzliche Fixes für sehr schmale Bildschirme */
    .workflow-steps {
        gap: 1rem;
    }
    
    .code-block {
        padding: 0.75rem;
        padding-right: 3rem; /* Genug Platz für Copy-Button */
        border-radius: var(--radius-sm); /* Behalte Abrundungen */
        border-left: 4px solid var(--primary-color); /* Behalte abgerundeten Rand */
        margin: 0; /* Entferne negative Margins */
    }
    
    .copy-btn {
        right: 0.5rem;
        width: 1.75rem;
        height: 1.75rem;
        padding: 0.25rem;
    }
    
    /* Entferne die negativen Margins für pre Tags */
    pre {
        padding: 0;
        margin: 0;
        border-radius: 0; /* Pre hat keine eigenen Abrundungen */
        background: none;
        border: none;
    }
    
    .table-responsive {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    /* Email mobile styles */
    body.email-body {
        padding: 0;
        background-color: var(--background);
    }

    .container-email {
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Spezielle Regeln für sehr schmale Bildschirme */
@media screen and (max-width: 430px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
    }
    
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .nav-links {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .content {
        padding: 0 0.5rem;
    }
    
    .code-block {
        padding: 1rem;
        padding-right: 3.5rem; /* Mehr Platz für Copy-Button */
        border-radius: var(--radius-sm); /* Behalte Abrundungen */
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0; /* Entferne negative Margins */
        border-left: 4px solid var(--primary-color); /* Behalte abgerundeten Rand */
    }
    
    .code-block pre {
        padding: 0;
        margin: 0;
        border-radius: 0; /* Pre hat keine eigenen Abrundungen */
        font-size: inherit;
        line-height: inherit;
        background: none;
        border: none;
    }
    
    .copy-btn {
        right: 0.75rem;
        top: 0.75rem;
        width: 2rem;
        height: 2rem;
        padding: 0.375rem;
        font-size: 0.75rem;
    }
    
    .footnote-content {
        max-width: calc(100vw - 2rem);
        min-width: auto;
        width: 50vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Button Adjustments - nur für normale Buttons, nicht sm/lg */
    .btn:not(.btn-sm):not(.btn-lg) {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Ensure btn-sm and btn-lg work on mobile */
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.625rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: center;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Class Selection Styles */
.class-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.class-item {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.class-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.class-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.class-checkbox .class-label {
    flex: 1;
}

.class-help-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.class-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.class-label {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.train-input,
.course-input {
    margin-top: 0.5rem;
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Time Selection Styles */
.time-selection-container {
    margin-top: 0.5rem;
}

.weekday-section {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.weekday-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.weekday-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weekday-controls {
    display: flex;
    gap: 0.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.5rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.time-slot input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-slot input[type="checkbox"]:checked + .time-label {
    color: white;
}

.time-slot:has(input[type="checkbox"]:checked) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-label {
    pointer-events: none;
    transition: color 0.2s ease;
}

/* New Time Selection Styles */
.checkbox-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0rem;
}

.checkbox-toggle-container input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.time-help-btn {
    margin-bottom: 1rem;
    display: inline-flex;
}

.time-add-section {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.time-add-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.time-add-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
}

.selected-times-section {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.selected-times-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.selected-times-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.time-display {
    font-weight: 500;
    color: var(--text-primary);
}

.no-times-message {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

/* Mobile optimizations for new components */
@media screen and (max-width: 768px) {
    .class-selection-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .time-help-btn {
        /* Override btn-lg on mobile to normal button size */
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .time-add-controls {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .selected-time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.375rem;
    }
    
    .time-slot {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
    
    .weekday-section {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 430px) {
    .class-item {
        padding: 0.75rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    }
}
