/* ========================================
   GEMEINSAME STYLES (Login & Dashboard)
   ======================================== */

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

/* Hintergrund Effekt */
body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    /*animation: drift 20s ease-in-out infinite;*/
    z-index: 0;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}


/* ========================================
   LOGIN-SPEZIFISCHE STYLES
   ======================================== */

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: slideUp 0.6s ease-out;
}

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

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 48px 40px;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: white;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

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

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #999;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    color: #666;
    font-weight: 400;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: #999;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 16px;
}

.alternative-login {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.alternative-login a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.alternative-login a:hover {
    color: #764ba2;
    text-decoration: underline;
}


/* ========================================
   DASHBOARD-SPEZIFISCHE STYLES
   ======================================== */

/* Header */
header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /*animation: slideDown 0.6s ease-out;*/
}

@keyframes slideDown {
    /*from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }*/
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.header-logo svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Navigation */
nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #667eea;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.logout-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

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

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 40px;
    min-height: calc(100vh - 200px);
}

.content-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.content-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.content-subtitle {
    font-size: 15px;
    color: #666;
}

/* Content Area - Platzhalter für Ihren Inhalt */
.content-body {
    /* Hier kommt Ihr Inhalt rein */
}


/* ========================================
   FILE LIST/TABLE STYLES
   ======================================== */

.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    /*transition: all 0.3s ease;*/
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary svg {
    flex-shrink: 0;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-select:hover {
    border-color: #667eea;
}

.filter-select:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* File Table */
.file-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.file-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.file-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    /*transition: background 0.2s ease;*/
}

.file-table tbody tr:hover {
    background: #f8f9fa;
}

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

.file-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.col-checkbox {
    width: 40px;
}

.col-name {
    min-width: 250px;
}

.col-info {
    width: 100px;
}

.col-type {
    width: 100px;
}

.col-size {
    width: 120px;
}

.col-date {
    width: 180px;
}

.col-actions {
    width: 140px;
}

/* File Name Cell */
.file-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon.doc {
    background: rgba(33, 133, 208, 0.1);
    color: #2185d0;
}

.file-icon.pdf {
    background: rgba(219, 40, 40, 0.1);
    color: #db2828;
}

.file-icon.img {
    background: rgba(251, 189, 8, 0.1);
    color: #fbbd08;
}

.file-icon.xls {
    background: rgba(33, 186, 69, 0.1);
    color: #21ba45;
}

.file-icon.zip {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

.file-name span {
    font-weight: 500;
}

/* File Type Badge */
.file-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-type-badge.doc {
    background: rgba(33, 133, 208, 0.1);
    color: #2185d0;
}

.file-type-badge.pdf {
    background: rgba(219, 40, 40, 0.1);
    color: #db2828;
}

.file-type-badge.img {
    background: rgba(251, 189, 8, 0.1);
    color: #fbbd08;
}

.file-type-badge.xls {
    background: rgba(33, 186, 69, 0.1);
    color: #21ba45;
}

.file-type-badge.zip {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.action-btn.delete:hover {
    background: rgba(219, 40, 40, 0.1);
    color: #db2828;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}


/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* File Input Wrapper */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-wrapper:hover .file-input-display {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-input-display svg {
    color: #667eea;
    flex-shrink: 0;
}

.file-input-display span {
    color: #666;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Select & Textarea */
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

select:focus,
textarea:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Button Secondary */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}


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

@media (max-width: 768px) {
    /* Dashboard Responsive */
    .header-container {
        height: 64px;
        padding: 0 16px;
    }

    nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .user-menu {
        gap: 12px;
    }

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

    main {
        margin: 20px auto;
        padding: 0 16px;
    }

    .content-card {
        padding: 24px 20px;
        min-height: calc(100vh - 140px);
    }

    .content-title {
        font-size: 24px;
    }

    /* File List Responsive */
    .header-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    /* Hide table columns on mobile */
	.file-table .col-info,
    .file-table .col-type,
    .file-table .col-size,
    .file-table .col-date {
        display: none;
    }

    .file-table th,
    .file-table td {
        padding: 12px 8px;
    }

    .actions {
        gap: 4px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    /* Login Responsive */
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    h1 {
        font-size: 22px;
    }

    .logo {
        width: 56px;
        height: 56px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    /* Dashboard Responsive */
    .site-title {
        font-size: 16px;
    }

    .header-logo {
        width: 36px;
        height: 36px;
    }

    .header-logo svg {
        width: 18px;
        height: 18px;
    }

    .logout-btn {
        display: none;
    }

    .content-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .content-title {
        font-size: 20px;
    }

    /* File List Responsive */
    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .file-table .col-checkbox {
        display: none;
    }

    .file-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .file-icon {
        width: 32px;
        height: 32px;
    }

    .file-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Modal Responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-footer {
        flex-direction: column;
    }

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

@media (max-width: 360px) {
    .login-card {
        padding: 28px 20px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
