/* ============================================
   DATENBOX - COMPLETE CLEAN STYLES
   ============================================ */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --bg: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-light: #F3F4F6;
    
    --text: #111827;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    
    --border: #E5E7EB;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

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

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

.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 6px;
}

.btn-icon:hover {
    color: var(--primary);
    background: var(--bg);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left-color: var(--success);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left-color: var(--danger);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left-color: var(--info);
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    margin-left: auto;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #EEF2FF;
    color: var(--primary);
}

.badge-success {
    background: #D1FAE5;
    color: var(--success);
}

.badge-danger {
    background: #FEE2E2;
    color: var(--danger);
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ============================================
   HEADERS
   ============================================ */

.participant-header,
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left i {
    font-size: 28px;
    color: var(--primary);
}

.header-left h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.username {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */

.admin-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-item.active {
    background: #EEF2FF;
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 24px;
}

.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   FORMS
   ============================================ */

.form-modern {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 6px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

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

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
}

.stat-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   TABLES & FILES
   ============================================ */

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-row {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.file-row:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: white;
    border: 2px solid var(--border);
}

.file-icon .fa-file-pdf {
    color: #DC2626;
}

.file-icon .fa-file-word {
    color: #2563EB;
}

.file-icon .fa-file-excel {
    color: #059669;
}

.file-icon .fa-file-powerpoint {
    color: #EA580C;
}

.file-icon .fa-file-image {
    color: #7C3AED;
}

.file-icon .fa-file-archive {
    color: #6B7280;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-meta {
    font-size: 13px;
    color: var(--text-light);
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   FILE TAGS
   ============================================ */

.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.file-tag,
.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tag-item button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    padding: 0;
    line-height: 1;
}

.tag-item button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.file-description {
    margin-top: 8px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    border-left: 3px solid var(--primary);
}

/* ============================================
   UPLOAD AREA
   ============================================ */

.upload-area {
    border: 3px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #EEF2FF;
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: #EEF2FF;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-content h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.upload-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.upload-content small {
    display: block;
    color: var(--text-lighter);
    margin-top: 12px;
}

.upload-progress {
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.3s;
}

/* ============================================
   NEWS & MESSAGES
   ============================================ */

.news-form {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.news-item {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 8px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.news-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.news-message {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.news-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-lighter);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================
   SEMINARE GRID
   ============================================ */

.seminare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.seminar-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.seminar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.seminar-card.expired {
    opacity: 0.6;
}

.seminar-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seminar-card-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.seminar-card-body {
    padding: 20px;
}

.seminar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.seminar-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb i {
    font-size: 12px;
}

/* ============================================
   INFO GRID
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item strong {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.info-item span {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   PARTICIPANT VIEW
   ============================================ */

.participant-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
}

.vag-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.vag-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.vag-header {
    text-align: center;
    margin-bottom: 32px;
}

.vag-header i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
}

.vag-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vag-header p {
    color: var(--text-light);
}

.input-group-large {
    position: relative;
    margin-bottom: 20px;
}

.input-group-large i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-light);
}

.input-group-large input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.2s;
}

.input-group-large input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.seminar-container {
    max-width: 900px;
    margin: 0 auto;
}

.seminar-header {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.seminar-header h2 {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.seminar-header p {
    color: var(--text-light);
}

/* ============================================
   DATE PICKER WITH QUICK SELECT
   ============================================ */

.date-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-date-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.quick-date-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #EEF2FF;
}

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

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 16px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

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

/* ============================================
   MODAL SYSTEM - CLEAN VERSION
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-white);
}

/* ============================================
   COLOR PICKER - BEAUTIFUL GRID
   ============================================ */

.color-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.color-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.color-custom label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.color-custom input[type="color"] {
    width: 80px;
    height: 50px;
    border: 3px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-custom input[type="color"]:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ============================================
   TAG PREVIEW
   ============================================ */

.tag-input-preview {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.tag-input-preview label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-preview {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

/* ============================================
   RENAME INFO BOX
   ============================================ */

.rename-info {
    background: #EEF2FF;
    border-left: 4px solid var(--info);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.rename-info i {
    color: var(--info);
    margin-right: 8px;
}

.rename-info strong {
    color: var(--info);
    font-weight: 700;
}

/* ============================================
   FORM CONTROLS IN MODAL
   ============================================ */

.modal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

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

.modal textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group:last-child {
    margin-bottom: 0;
}

.modal .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.modal .form-group small {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 6px;
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */

@media (max-width: 640px) {
    .modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .color-picker {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .color-custom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-custom input[type="color"] {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .seminare-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .login-card {
        padding: 40px 30px;
    }
    
    .vag-card {
        padding: 30px 20px;
    }
}
/* ============================================
   FILE PREVIEW SYSTEM - STYLES
   ============================================ */

/* Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.2s ease;
}

.preview-modal.active {
    display: flex;
    flex-direction: column;
}

/* Preview Header */
.preview-header {
    background: #1F2937;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    flex-shrink: 0;
}

.preview-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.preview-btn {
    background: #374151;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.preview-btn:hover {
    background: #4B5563;
    transform: translateY(-1px);
}

.preview-btn i {
    font-size: 16px;
}

/* Preview Body */
.preview-body {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
}

/* Loading State */
.preview-loading {
    color: #fff;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preview-loading i {
    font-size: 48px;
    animation: spin 1s linear infinite;
}

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

/* PDF Viewer */
.preview-pdf {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 8px;
}

/* Image Viewer */
.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Office Document Viewer */
.preview-office {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 8px;
}

/* Text/Code Viewer */
.preview-text {
    width: 100%;
    max-width: 1000px;
    background: #1F2937;
    border-radius: 8px;
    padding: 24px;
    overflow: auto;
}

.preview-text pre {
    margin: 0;
    color: #E5E7EB;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.preview-text code {
    color: #E5E7EB;
}

/* Video Player */
.preview-video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Audio Player */
.preview-audio {
    width: 100%;
    max-width: 600px;
}

/* Error State */
.preview-error {
    color: #fff;
    text-align: center;
    padding: 40px;
}

.preview-error i {
    font-size: 64px;
    color: #EF4444;
    margin-bottom: 16px;
}

.preview-error h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
}

.preview-error p {
    color: #9CA3AF;
    margin: 0;
}

/* Preview Button in File List */
.file-actions .btn-preview {
    background: #3B82F6;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.file-actions .btn-preview:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.file-actions .btn-preview i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-header {
        padding: 12px 16px;
    }
    
    .preview-title {
        font-size: 16px;
    }
    
    .preview-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .preview-body {
        padding: 16px;
    }
    
    .preview-image {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Syntax Highlighting für Code */
.preview-text code.language-php { color: #8B5CF6; }
.preview-text code.language-js { color: #F59E0B; }
.preview-text code.language-css { color: #3B82F6; }
.preview-text code.language-html { color: #EC4899; }
.preview-text code.language-sql { color: #10B981; }
.preview-text code.language-json { color: #06B6D4; }

/* Keywords */
.preview-text .keyword { color: #EC4899; font-weight: bold; }
.preview-text .string { color: #10B981; }
.preview-text .comment { color: #6B7280; font-style: italic; }
.preview-text .number { color: #F59E0B; }
