/* H5Transfer Custom Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.home-fullscreen {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.home-fullscreen.logged-in {
    overflow: auto;
}

footer {
    margin-top: auto;
}

/* Fullscreen Hero Section */
.hero-fullscreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0d6efd;
    position: relative;
    overflow: hidden;
}

.hero-fullscreen.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Leichtes Overlay über Hintergrundbild für bessere Lesbarkeit */
.hero-fullscreen.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
/* Hero Content, Upload Card, Footer - immer über Overlay */
.hero-content,
.upload-card-overlay,
.hero-footer,
.transfers-sidebar {
    position: relative;
    z-index: 10;
}

    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Header (Logo + Login) */
.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 2rem 0;
}

.hero-logo img {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Hero Center Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.hero-logo-img {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.btn-hero-login {
    padding: 14px 40px;
    background: white;
    color: #111827;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-hero-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Header Login Button (rechts oben) */
.btn-header-login {
    padding: 10px 28px;
    background: white;
    color: #111827;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-header-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Hero Footer (Copyright + Links) */
.hero-footer {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

/* Old Hero Section (for other pages) */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: #0d6efd;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-with-image {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(13, 110, 253, 0.8);
    width: 100%;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Feature Boxes */
.feature-box {
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

/* Login Modal - Modern Style */
.modern-modal {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: none;
}

.modern-modal .modal-header {
    padding: 24px 24px 12px;
}

.modern-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.modern-modal .modal-body {
    padding: 12px 24px 24px;
}

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

.form-label-modal {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-control-modal {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control-modal:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-modal-primary {
    width: 100%;
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    position: relative;
}

.btn-modal-primary:hover {
    background: #1d4ed8;
}

.btn-modal-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-sm {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Hero Section - Fullscreen */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fullscreen.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Hero Header & Footer Overlays */
.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.hero-logo img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Upload Card - WeTransfer Style */
.upload-card-overlay {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 420px;
    width: 100%;
}

.upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.upload-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.upload-card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.upload-card-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.upload-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.upload-tab:hover {
    color: #374151;
}

.upload-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.upload-card-body {
    padding: 24px;
}

/* Compact Dropzone */
.dropzone-compact {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.dropzone-compact:hover,
.dropzone-compact.dragover {
    background: #eff6ff;
    border-color: #2563eb;
}

.dropzone-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 8px;
}

.dropzone-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Selected Files List */
.selected-files-list {
    margin: 16px 0;
}

.selected-files-list .list-group-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Controls - Compact */
.form-group-compact {
    margin-bottom: 12px;
}

.form-label-sm {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-control-sm {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control-sm:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-sm {
    margin: 12px 0;
}

.form-check-sm .form-check-input {
    margin-top: 2px;
}

.form-check-sm .form-check-label {
    font-size: 14px;
    color: #374151;
}

/* Buttons */
.btn-upload-primary {
    width: 100%;
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

.btn-upload-primary:hover {
    background: #1d4ed8;
}

.btn-link-sm {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link-sm:hover {
    text-decoration: underline;
}

/* Upload Progress */
.upload-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

.upload-progress-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Transfers Sidebar */
.transfers-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.transfers-sidebar.active {
    right: 0;
}

.transfers-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.transfers-sidebar-header h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btn-close-sidebar:hover {
    background: #f3f4f6;
}

.transfers-sidebar-body {
    padding: 16px;
}

.transfer-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.transfer-item h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.transfer-item small {
    font-size: 13px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-card-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .transfers-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Upload Dropzone - Old (keep for backward compat) */
.dropzone {
    border: 3px dashed #0d6efd;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.dropzone:hover,
.dropzone.dragover {
    background: #e7f3ff;
    border-color: #0a58ca;
}

.dropzone .upload-icon {
    font-size: 4rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* Progress Bar */
.upload-progress {
    margin-top: 20px;
}

.progress {
    height: 30px;
}

.progress-bar {
    font-size: 14px;
    line-height: 30px;
}

/* File List */
.file-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #0d6efd;
}

/* Transfer Card */
.transfer-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.transfer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Slider */
.expiry-slider {
    margin: 20px 0;
}

.slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin-top: 10px;
}

/* Copy Button */
.copy-button {
    cursor: pointer;
}

.copy-button:hover {
    background: #0a58ca !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-overlay {
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}
