/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.header-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.header-content a.header-logo {
    display: block;
    margin: 0 auto;
}

.header-content a.header-logo img {
    max-height: 5rem;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.header-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header-content h1 i {
    color: #3498db;
}

.header-content p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.breadcrumb {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

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

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #95a5a6;
}

/* Main content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.card-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-primary * {
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-primary:hover * {
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: #2c3e50;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    color: #2c3e50;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

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

.btn-new-transfer {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.btn-new-transfer.btn-large {
    padding: 0.95rem 1.8rem;
    font-size: 1.05rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.alert i {
    font-size: 1.2rem;
}

/* Login section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #2c3e50;
}

.feature i {
    color: #3498db;
    font-size: 1.2rem;
    width: 20px;
}

.login-actions {
    margin-bottom: 2rem;
}

.login-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Authenticated section */
.authenticated-section {
    text-align: center;
}

.welcome-message {
    margin-bottom: 3rem;
}

.welcome-message h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.welcome-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.logout-section {
    margin-top: 2rem;
}

/* Upload section */
.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.upload-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.upload-header p {
    color: #7f8c8d;
}

/* Form styling */
.upload-form {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#transferForm .form-group {
    margin-bottom: 0.75rem;
}

#transferForm .form-group label {
    margin-bottom: 0.25rem;
}

#transferForm label[for="recipientEmail"],
#transferForm label[for="emailTitle"],
#transferForm label[for="transferMessage"],
#transferForm label[for="expiryDays"],
#transferForm label[for="transferPassword"] {
    font-size: 0.9rem;
    line-height: 1.2;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #3498db;
}

.password-toggle:focus {
    outline: none;
    color: #2c3e50;
}

/* File input styling */
.file-label {
    cursor: pointer;
}

.file-input-wrapper {
    position: relative;
    border: 3px dashed #bdc3c7;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-input-wrapper:hover {
    border-color: #3498db;
    background: #e8f4fd;
}

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

.file-input-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-input-display i {
    font-size: 3rem;
    color: #3498db;
}

.file-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.file-size-limit {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.file-info {
    background: #e8f5e8;
    border: 1px solid #2ecc71;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-name {
    font-weight: 600;
    color: #27ae60;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    min-height: 48px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Upload info */
.upload-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.upload-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-item span {
    color: #7f8c8d;
}

/* Progress section */
.progress-section {
    margin-top: 2rem;
}

.progress-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill.uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Videocamera upload animatie - rij 1: camera + Uploaden... naast elkaar, rij 2: percentage */
.upload-camera-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.upload-camera-row {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 1rem;
}

.upload-scene-filmed {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: #5a6c7d;
}

.upload-scene-filmed i {
    font-size: 3.5rem !important;
}

.upload-scene-filmed span {
    font-size: 3rem !important;
    font-weight: 600;
}

.upload-camera {
    position: relative;
    width: 160px;
    height: 160px;
    min-width: 160px;
    max-width: 160px;
    min-height: 160px;
    max-height: 160px;
    flex-shrink: 0;
}

.upload-camera .camera-svg {
    display: block;
    width: 160px;
    height: 160px;
    min-width: 160px;
    max-width: 160px;
    min-height: 160px;
    max-height: 160px;
    color: #5a6c7d;
}

.upload-camera .camera-fill {
    transition: height 0.35s ease, y 0.35s ease, fill 0.3s ease;
}

.upload-camera .camera-fill.uploading {
    animation: camera-data-pulse 2s ease-in-out infinite;
}

@keyframes camera-data-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.upload-camera .camera-svg text#progressPercent {
    font-family: inherit;
    paint-order: stroke fill;
    stroke: white;
    stroke-width: 0.5;
}

.upload-progress .upload-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #5a6c7d;
    text-align: center;
    min-height: 1.5em;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Files section */
.files-section {
    max-width: 1000px;
    margin: 0 auto;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.files-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.files-actions {
    display: flex;
    gap: 1rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.file-card .file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.file-card .file-info {
    margin-bottom: 1.5rem;
}

.file-card .file-name {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.file-card .file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-card .file-details span {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-card .file-description {
    color: #95a5a6;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.file-card .file-actions {
    display: flex;
    gap: 0.75rem;
}

/* Download page file type icons */
.file-preview {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f3f5;
    margin-right: 0.5rem;
}

.file-preview i {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.file-preview--image i { color: #27ae60; }
.file-preview--video i { color: #8e44ad; }
.file-preview--audio i { color: #2980b9; }
.file-preview--word i { color: #2b579a; }
.file-preview--excel i { color: #217346; }
.file-preview--powerpoint i { color: #d24726; }
.file-preview--pdf i { color: #c0392b; }
.file-preview--archive i { color: #d68910; }
.file-preview--text i { color: #566573; }
.file-preview--document i { color: #5d6d7e; }

.files-list--preview {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.file-item--preview {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8ecef;
}

.file-item--preview:last-child {
    border-bottom: none;
}

.file-item--preview .file-info {
    flex: 1;
    min-width: 0;
}

.file-item--preview .file-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item--preview .file-size {
    font-size: 0.75rem;
    color: #888;
}

.download-single-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-single-preview .file-preview {
    width: 64px;
    height: 64px;
    margin-right: 0;
}

.download-single-details {
    flex: 1;
    min-width: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ecf0f1;
    color: #e74c3c;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.download-actions, .share-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.download-progress {
    margin-top: 1.5rem;
}

.download-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(44, 62, 80, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.download-overlay-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.download-scene-downloading i {
    font-size: 3.5rem !important;
    color: #3498db;
}

.download-scene-downloading span {
    font-size: 3rem !important;
    font-weight: 600;
}

.download-complete-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #2ecc71;
}

.download-complete-scene i {
    font-size: 5rem;
}

.download-complete-label {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.download-complete-hint {
    margin: 0;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.download-help-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
    color: #3498db;
    text-align: center;
}

.download-help-scene > i {
    font-size: 3.5rem;
}

.download-help-steps {
    margin: 0.25rem 0 0;
    padding: 0 0 0 1.25rem;
    text-align: left;
    color: #2c3e50;
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 24rem;
}

.download-help-steps li {
    margin: 0.55rem 0;
}

.download-help-steps strong {
    font-weight: 700;
}

.download-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.download-error-state {
    color: #e74c3c;
}

.download-error-state .download-complete-label {
    color: #e74c3c;
}

.download-error-state i {
    color: #e74c3c;
}

#downloadCloseBtn {
    margin-top: 1rem;
}

.file-selection-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(44, 62, 80, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.file-selection-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.file-selection-overlay-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.file-selection-overlay-card i.fa-spinner {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.file-selection-overlay-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.file-selection-overlay-message {
    margin: 0;
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.5;
}

#uploadArea.drag-over {
    border-color: #3498db !important;
    background: #eef6ff !important;
}

.share-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #7f8c8d;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .files-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .files-actions {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header, .modal-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Transfer header kolommen: stapelen op tablet/mobiel */
    .transfers-with-sender-column .transfer-header-columns,
    .guest-uploads-list .transfer-header-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .transfers-with-sender-column .transfer-header-columns .transfer-title,
    .guest-uploads-list .transfer-header-columns .transfer-title {
        grid-column: 1;
    }
    
    .transfers-with-sender-column .transfer-sender-name-col,
    .transfers-with-sender-column .transfer-sender-email-col,
    .guest-uploads-list .transfer-header-columns > * {
        min-width: unset;
    }
    
    .transfers-with-sender-column .sender-name,
    .transfers-with-sender-column .sender-email-link {
        white-space: normal;
    }
    
    /* Mijn Transfers: header flex-wrap op mobiel */
    .transfers-list:not(.transfers-with-sender-column) .transfer-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .transfers-list:not(.transfers-with-sender-column) .transfer-header .transfer-status {
        flex-shrink: 0;
    }
    
    /* Upload camera kleiner op tablet */
    .upload-camera,
    .upload-camera .camera-svg {
        width: 120px;
        height: 120px;
        min-width: 120px;
        max-width: 120px;
        min-height: 120px;
        max-height: 120px;
    }
    
    .upload-scene-filmed i {
        font-size: 2.5rem !important;
    }
    
    .upload-scene-filmed span {
        font-size: 2.2rem !important;
    }

    .download-scene-downloading i {
        font-size: 2.5rem !important;
    }

    .download-scene-downloading span {
        font-size: 2.2rem !important;
    }

    .download-complete-scene i {
        font-size: 4rem;
    }

    .download-complete-label {
        font-size: 1.5rem;
    }

    .download-overlay-card {
        padding: 1.5rem;
    }
}

/* Dashboard overview grid */
.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.admin-action-card {
    align-items: stretch;
}

.admin-action-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.admin-action-card .btn {
    width: 100%;
    white-space: normal;
}

/* Schijfruimte waarschuwingen */
.stat-card.disk-space-ok {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
}
.stat-card.disk-space-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #ffe8cc 100%);
    border: 2px solid #f59e0b;
}
.stat-card.disk-space-critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-content small {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.transfers-section {
    margin-top: 2rem;
}

.transfers-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transfers-list {
    display: grid;
    gap: 1rem;
}

.transfer-card {
    background: white;
    border-radius: 15px;
    padding: 0.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.transfer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.transfer-header .btn.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    line-height: 1;
}

.transfer-status {
    margin: 0;
}

.transfer-title h3 {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.transfer-code {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-family: monospace;
}

.transfer-status {
    flex-shrink: 0;
}

/* Ontvangen Bestanden & Gastuploads: naam en e-mail in aparte kolommen */
.transfers-with-sender-column .transfer-header-columns {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 0.2fr) minmax(180px, 0.3fr) auto;
    gap: 1rem;
    align-items: center;
}
.transfers-with-sender-column .transfer-sender-name-col,
.transfers-with-sender-column .transfer-sender-email-col {
    min-width: 0;
}
.transfers-with-sender-column .sender-name {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.transfers-with-sender-column .sender-email-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.transfers-with-sender-column .sender-email-link:hover {
    text-decoration: underline;
}
.transfers-with-sender-column .sender-email-placeholder {
    font-size: 0.9rem;
    color: #bdc3c7;
}
/* Gastuploads: checkbox + titel + naam + e-mail + download */
.guest-uploads-list .transfer-header-columns {
    grid-template-columns: auto 1fr minmax(120px, 0.2fr) minmax(180px, 0.3fr) auto;
}
.guest-uploads-list .transfer-title {
    min-width: 0;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.badge-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.transfer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.detail-item i {
    color: #3498db;
    width: 20px;
}

.transfer-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
}

/* Mobiel/tablet dashboard — moet ná desktop-grid staan (CSS-cascade) */
@media (max-width: 768px),
       ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
    .dashboard-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .dashboard-overview-grid > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions .btn {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .transfers-with-sender-column .transfer-header-columns,
    .guest-uploads-list .transfer-header-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .transfers-with-sender-column .transfer-header-columns .transfer-title,
    .guest-uploads-list .transfer-header-columns .transfer-title {
        grid-column: 1;
    }

    .transfers-with-sender-column .transfer-sender-name-col,
    .transfers-with-sender-column .transfer-sender-email-col,
    .guest-uploads-list .transfer-header-columns > * {
        min-width: unset;
    }

    .transfers-with-sender-column .sender-name,
    .transfers-with-sender-column .sender-email-link {
        white-space: normal;
    }

    html,
    body {
        overflow-x: clip;
    }

    .container,
    .main-content,
    .dashboard-overview {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .file-card .file-actions {
        flex-direction: column;
    }
    
    .download-actions, .share-actions {
        flex-direction: column;
    }
    
    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .transfer-details {
        grid-template-columns: 1fr;
    }
    
    .transfer-actions {
        flex-direction: column;
    }
    
    .transfer-actions .btn {
        width: 100%;
    }
    
    /* Upload camera nog kleiner op smartphone */
    .upload-camera,
    .upload-camera .camera-svg {
        width: 100px;
        height: 100px;
        min-width: 100px;
        max-width: 100px;
        min-height: 100px;
        max-height: 100px;
    }
    
    .upload-scene-filmed i {
        font-size: 2rem !important;
    }
    
    .upload-scene-filmed span {
        font-size: 1.8rem !important;
    }
    
    .upload-camera-row {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }
    
    .modal-content {
        margin: 2% auto;
    }
}

/* PWA installatiebanner (dashboard, na inloggen) */
.pwa-install-banner {
    background: linear-gradient(145deg, #1f2d3d 0%, #2c3e50 42%, #3498db 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.35rem 1.35rem 1.15rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 32px rgba(31, 45, 61, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-banner__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-install-banner__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    object-fit: cover;
}

.pwa-install-banner__intro {
    min-width: 0;
}

.pwa-install-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.pwa-install-banner__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.92;
}

.pwa-install-banner__panel {
    background: rgba(255, 255, 255, 0.97);
    color: #2c3e50;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pwa-install-banner__panel[hidden] {
    display: none !important;
}

.pwa-install-banner__panel-lead {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #34495e;
}

.pwa-install-banner__manual-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #2c3e50;
    font-size: 0.88rem;
    line-height: 1.5;
}

.pwa-install-banner__manual-list li + li {
    margin-top: 0.45rem;
}

.pwa-install-banner__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pwa-install-banner__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f4f7fb;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.pwa-install-banner__step-num {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.05rem;
}

.pwa-install-banner__step-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #2c3e50;
}

.pwa-install-banner__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #2c3e50;
    vertical-align: middle;
    white-space: nowrap;
}

.pwa-install-banner__pill--share {
    background: #eef4ff;
    border-color: #c5d8f5;
    color: #1a5fb4;
}

.pwa-install-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.pwa-install-banner--ios .pwa-install-banner__actions {
    justify-content: stretch;
}

.pwa-install-banner--ios .pwa-install-banner__dismiss-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pwa-install-banner--ios .pwa-install-banner__install-btn {
    display: none !important;
}

.pwa-install-banner .btn {
    white-space: nowrap;
}

.pwa-install-banner .btn-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.pwa-install-banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pwa-install-banner--desktop {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.pwa-install-banner--desktop .pwa-install-banner__hero {
    flex: 1 1 260px;
}

.pwa-install-banner--desktop .pwa-install-banner__panel--desktop {
    flex: 1 1 100%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.pwa-install-banner--desktop .pwa-install-banner__panel-lead {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

.pwa-install-banner--desktop .pwa-install-banner__actions {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 480px) {
    .pwa-install-banner__hero {
        align-items: flex-start;
    }

    .pwa-install-banner__icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .pwa-install-banner__title {
        font-size: 1.05rem;
    }

    .pwa-install-banner__step-text {
        font-size: 0.86rem;
    }

    .pwa-install-banner__pill {
        display: inline-flex;
        margin-top: 0.2rem;
    }
}
