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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme Styles */
body.light-theme {
    background: #f5f5f5;
    color: #333333;
}

body.light-theme .sidebar {
    background: #ffffff;
    border-right-color: #e0e0e0;
}

body.light-theme .sidebar-header {
    background: #f8f9fa;
    color: #333333;
}

body.light-theme .file-item {
    border-bottom-color: #f0f0f0;
}

body.light-theme .file-item:hover {
    background: #f8f9fa;
    border-left-color: #666666;
}

body.light-theme .file-item.active {
    background: #f0f0f0;
    border-left-color: #333333;
}

body.light-theme .file-name {
    color: #333333;
}

body.light-theme .file-date {
    color: #666666;
}

body.light-theme .main-content {
    background: #f5f5f5;
}

body.light-theme .app-tabs {
    background: #f8f9fa;
    border-bottom-color: #e0e0e0;
}

body.light-theme .app-tab {
    color: #666666;
}

body.light-theme .app-tab:hover {
    color: #333333;
    background: #f0f0f0;
}

body.light-theme .app-tab.active {
    color: #333333;
    border-bottom-color: #333333;
}

body.light-theme .toolbar {
    background: #f8f9fa;
    border-bottom-color: #e0e0e0;
}

body.light-theme .toolbar button {
    border-color: #d0d0d0;
    color: #333333;
}

body.light-theme .toolbar button:hover {
    background: #e0e0e0;
    border-color: #999999;
}

body.light-theme .toolbar button.active {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

body.light-theme .toolbar select {
    background: #ffffff !important;
    color: #333333 !important;
    border-color: #d0d0d0;
}

body.light-theme .toolbar select option {
    background: #ffffff !important;
    color: #333333 !important;
}

body.light-theme .doc-title {
    background: #ffffff;
    color: #333333;
    border-color: #d0d0d0;
}

body.light-theme .editor-container {
    background: #f5f5f5;
}

body.light-theme .slides-sidebar {
    background: #ffffff;
    border-right-color: #e0e0e0;
}

body.light-theme .slides-header {
    background: #f8f9fa;
}

body.light-theme .slides-header h3 {
    color: #333333;
}

body.light-theme .slide-item {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

body.light-theme .slide-item:hover {
    border-color: #999999;
}

body.light-theme .slide-item.active {
    border-color: #333333;
}

body.light-theme .status-bar {
    background: #f8f9fa;
    border-top-color: #e0e0e0;
    color: #666666;
}

body.light-theme .modal {
    background: rgba(0,0,0,0.3);
}

body.light-theme .modal-content {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme .modal-content h3 {
    color: #333333;
}

body.light-theme .modal-content input,
body.light-theme .modal-content select {
    background: #f8f9fa;
    color: #333333;
    border-color: #d0d0d0;
}

/* Template Selector Modal Styles */
.template-selector {
    max-width: 600px;
}

.template-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.template-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.template-option:hover {
    transform: scale(1.05);
}

.template-preview {
    width: 150px;
    height: 100px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

body.light-theme .template-preview {
    background: #f8f9fa;
    border-color: #2196F3;
}

.template-option span {
    display: block;
    font-size: 12px;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-theme .template-option span {
    color: #666666;
}

/* Template preview styles */
.template-title .title-placeholder {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 15px;
    background: #333;
    border-radius: 2px;
}

.template-title .title-line {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    border: none;
    border-top: 1px solid #666;
}

.template-title .subtitle-placeholder {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 10px;
    background: #666;
    border-radius: 2px;
}

.template-content .content-line {
    height: 8px;
    background: #333;
    margin: 8px 0;
    border-radius: 2px;
}

.template-content-image .header-line {
    height: 10px;
    background: #333;
    margin-bottom: 10px;
    border-radius: 2px;
}

.template-content-image .two-column {
    display: flex;
    gap: 10px;
    height: 60px;
}

.template-content-image .column-left {
    flex: 1;
    background: #ddd;
    border-radius: 2px;
}

.template-content-image .column-right {
    flex: 1;
    background: #666;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.template-content-image .column-right::after {
    content: '🖼';
    font-size: 20px;
    opacity: 0.5;
}

/* Einfache zweispaltige Layout ohne Rahmen */
.two-column-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.column-text,
.column-image {
    flex: 1;
    padding: 10px;
    min-height: 200px;
    position: relative;
}

/* Title template layout */
.title-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    padding-bottom: 60px;
}

.title-layout h1 {
    margin-bottom: 15px;
}

.title-layout hr {
    border: none;
    border-top: 2px solid #333;
    margin: 15px 0;
}

body.light-theme .title-layout hr {
    border-top-color: #666;
}

.title-layout .subtitle {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
}

/* Sticky Toolbar */
.sticky-toolbar {
    position: sticky !important;
    top: 0;
    z-index: 500;
    background: #000000;
}

body.light-theme .sticky-toolbar {
    background: #f8f9fa;
}

/* Normalized Container für konsistente Bildpositionen */
.normalized-container {
    position: relative !important;
}

/* Verbesserte Bildpositionierung für alle Modi */
.editor .floating-image-container,
.slide-editor .floating-image-container {
    position: absolute !important;
}

/* Konsistente Container-Dimensionen für Bilder */
.editor, .slide-editor {
    min-height: 500px;
    position: relative;
}

/* Fullscreen-Anpassungen für Bilder */
.fullscreen-container .floating-image-container {
    position: absolute !important;
}

/* Preview-Anpassungen für Bilder */
.preview-overlay .floating-image-container {
    position: absolute !important;
}

/* Small-Tag Styling */
.editor small, .slide-editor small {
    font-size: 0.85em;
    color: inherit;
}

/* Format-Dropdown Highlight bei aktiver Auswahl */
.toolbar select#formatSelect,
.toolbar select#slideFormatSelect {
    transition: background-color 0.2s, border-color 0.2s;
}

.toolbar select#formatSelect:focus,
.toolbar select#slideFormatSelect:focus {
    border-color: #3498db;
    background: #1a1a1a;
}

/* VERBESSERTE Tabellen-Styles */
.table-wrapper {
    position: relative;
    margin: 20px 0;
    display: block;
    width: 100%;
    transition: outline 0.3s;
}

.table-wrapper.table-selected,
.table-wrapper:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.table-controls {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    background: #333;
    padding: 5px;
    border-radius: 4px;
    z-index: 1000;
    align-items: center;
}

.table-wrapper:hover .table-controls,
.table-wrapper.table-selected .table-controls {
    display: flex !important;
}

.table-controls button {
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    background: white;
    border: 1px solid #ccc;
    border-radius: 2px;
    transition: all 0.2s;
}

.table-controls button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.table-controls button:active {
    transform: translateY(0);
}

.delete-hint {
    font-size: 9px;
    color: #aaa;
    margin-left: auto;
    white-space: nowrap;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

table td,
table th {
    border: 1px solid #ccc;
    padding: 8px;
    min-width: 80px;
    outline: none;
    transition: background-color 0.2s;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background: transparent;
    font-weight: normal;
}

table th {
    font-weight: bold;
    background: #f0f0f0;
}

table td:focus,
table th:focus {
    background-color: rgba(52, 152, 219, 0.1);
    outline: 2px solid #3498db;
    outline-offset: -2px;
}

body.light-theme table td:focus,
body.light-theme table th:focus {
    background-color: rgba(33, 150, 243, 0.1);
    outline-color: #2196F3;
}

/* Tabellen in Überschriften */
.editor table td h1,
.editor table td h2,
.editor table td h3,
.slide-editor table td h1,
.slide-editor table td h2,
.slide-editor table td h3 {
    margin: 0;
    padding: 0;
}

/* App Container - Hauptlayout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #0d0d0d;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    position: relative;
}

/* Sidebar versteckt - mit negativer Margin */
.sidebar.hidden {
    margin-left: -280px;
}

.sidebar-header {
    padding: 20px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #404040;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #cccccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #666666;
}

.sidebar-header h2 {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.file-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.file-filter {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.filter-btn {
    padding: 4px 8px;
    border: 1px solid #404040;
    border-radius: 2px;
    background: transparent;
    color: #888888;
    cursor: pointer;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-small {
    padding: 6px 12px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: transparent;
    color: #cccccc;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-small:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

.btn-small.danger {
    border-color: #404040;
    color: #ff6b6b;
}

.btn-small.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #2a2a2a;
    background: #000000;
}

.license-info {
    text-align: center;
}

.license-info .author {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 12px;
}

.license-info .website {
    color: #888888;
    margin-bottom: 6px;
    font-size: 10px;
}

.license-info .license {
    color: #cccccc;
    margin-bottom: 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-link {
    display: inline-block;
    color: #666666;
    text-decoration: none;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #404040;
    padding: 4px 8px;
    border-radius: 2px;
    transition: all 0.2s;
}

.terms-link:hover {
    color: #ffffff;
    border-color: #666666;
    background: #1a1a1a;
}

body.light-theme .sidebar-footer {
    background: #f8f9fa;
    border-top-color: #e0e0e0;
}

body.light-theme .license-info .author {
    color: #333333;
}

body.light-theme .license-info .website {
    color: #666666;
}

body.light-theme .license-info .license {
    color: #333333;
}

body.light-theme .terms-link {
    color: #666666;
    border-color: #d0d0d0;
}

body.light-theme .terms-link:hover {
    color: #333333;
    border-color: #999999;
    background: #f0f0f0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #1a1a1a;
    border-left: 2px solid transparent;
    position: relative;
}

.file-item:hover {
    background: #1a1a1a;
    border-left-color: #404040;
}

.file-item.active {
    background: #1a1a1a;
    border-left-color: #ffffff;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-type {
    font-size: 16px;
}

.file-date {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.file-actions-mini {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-item:hover .file-actions-mini {
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-tabs {
    background: #000000;
    display: flex;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
}

.sidebar-toggle {
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    border-right: 1px solid #2a2a2a;
}

.sidebar-toggle:hover {
    color: #cccccc;
    background: #1a1a1a;
}

.app-tab {
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.app-tab:hover {
    color: #cccccc;
    background: #1a1a1a;
}

.app-tab.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.toolbar {
    background: #000000;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.toolbar-group label {
    color: #999999;
    font-size: 10px;
    font-weight: 500;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 50px;
    white-space: nowrap;
}

.toolbar button {
    padding: 6px 12px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: transparent;
    color: #cccccc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 32px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar button:hover {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

.toolbar button.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.toolbar select {
    padding: 6px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    font-size: 10px;
    background: #1a1a1a;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 32px;
}

.toolbar select option {
    background: #1a1a1a !important;
    color: #cccccc !important;
    padding: 8px;
}

.toolbar input[type="color"] {
    width: 32px;
    height: 32px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.doc-title {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: #0d0d0d;
    color: #ffffff;
    font-size: 12px;
    height: 32px;
}

.doc-title::placeholder {
    color: #666666;
}

.content-area {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.content-area.active {
    display: flex;
    flex-direction: column;
}

.editor-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #1a1a1a;
    height: 100%;
    min-height: 0;
}

.editor {
    min-height: 500px;
    padding: 40px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    outline: none;
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
    max-width: 210mm;
    margin: 0 auto;
    color: #000000;
    position: relative;
}

.editor:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff, 0 4px 20px rgba(0,0,0,0.4);
}

.editor.font-serif, .slide-editor.font-serif {
    font-family: 'Times New Roman', Times, serif;
}

.editor.font-sans-serif, .slide-editor.font-sans-serif {
    font-family: 'Arial', Helvetica, sans-serif;
}

.editor.font-monospace, .slide-editor.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}

.editor ul, .editor ol, .slide-editor ul, .slide-editor ol {
    margin: 10px 0;
    padding-left: 30px;
}

.editor ul li, .editor ol li, .slide-editor ul li, .slide-editor ol li {
    margin: 5px 0;
    line-height: 1.6;
}

.floating-image-container {
    border: 2px solid transparent !important;
    transition: border-color 0.3s;
    cursor: move;
}

.floating-image-container.selected,
.floating-image-container:hover {
    border-color: #3498db !important;
}

body.light-theme .floating-image-container.selected,
body.light-theme .floating-image-container:hover {
    border-color: #2196F3 !important;
}

.image-controls {
    opacity: 0 !important;
    transition: opacity 0.3s;
}

.floating-image-container:hover .image-controls {
    opacity: 1 !important;
}

.resize-handle {
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-image-container.selected .resize-handle,
.floating-image-container:hover .resize-handle {
    opacity: 1;
}

.presentation-container {
    flex: 1;
    display: flex;
    background: #1a1a1a;
    overflow: hidden;
}

.slides-sidebar {
    width: 200px;
    background: #0d0d0d;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
}

.slides-header {
    padding: 16px;
    background: #000000;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.slides-header h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 12px;
}

.slide-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.slides-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.slide-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.slide-item:active {
    cursor: grabbing;
}

.slide-item.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.slide-item:hover {
    border-color: #404040;
}

.slide-item.active {
    border-color: #ffffff;
}

.slide-drag-handle {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    color: #666;
    font-size: 12px;
    user-select: none;
}

.slide-preview {
    aspect-ratio: 16/9;
    background: #ffffff;
    color: #000000;
    padding: 8px;
    font-size: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: 12px;
    pointer-events: none;
    user-select: none;
}

.slide-number {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #000000;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
}

.presentation-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: auto;
    min-height: 0;
    justify-content: center;
    align-items: center;
}

.slide-editor {
    width: 800px;
    height: 450px;
    background: #ffffff;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    outline: none;
    padding: 40px;
    font-family: 'Arial', sans-serif;
    font-size: 18pt;
    color: #000000;
    overflow: auto;
    position: relative;
    margin: 0 auto;
}

.slide-editor:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff, 0 4px 20px rgba(0,0,0,0.4);
}

.status-bar {
    background: #000000;
    padding: 12px 24px;
    font-size: 10px;
    color: #999999;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding: 0 20px;
}

.zoom-controls button {
    padding: 4px 8px;
    font-size: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #cccccc;
    cursor: pointer;
    border-radius: 2px;
}

.zoom-controls button:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.zoom-controls input[type="range"] {
    width: 100px;
}

.zoom-controls span {
    min-width: 40px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0d0d0d;
    padding: 32px;
    border-radius: 2px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.modal-content h3 {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    border-radius: 2px;
}

.modal-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    border-radius: 2px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons button {
    padding: 12px 24px;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-primary:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    border-color: #2a2a2a;
}

.btn-secondary:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.fullscreen-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fullscreen-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10000;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 50px;
}

.fullscreen-nav button {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #cccccc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.fullscreen-nav button:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.slide-counter {
    display: flex;
    align-items: center;
    color: #cccccc;
    font-size: 12px;
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 9998;
    overflow: auto;
    padding: 40px 20px;
}

.preview-close {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px;
}

.preview-close:hover {
    background: #555;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        margin-left: 0;
    }
    
    .sidebar.hidden {
        transform: translateX(-100%);
        margin-left: 0;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .slide-editor {
        transform: scale(0.7);
        width: 700px;
        height: 400px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .app-tabs,
    .toolbar,
    .status-bar,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .editor,
    .slide-editor {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }
}
