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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
    overflow: hidden;
    height: 100vh;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

.drop-zone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.dark-theme .drop-zone {
    border-color: #555;
    background-color: rgba(26, 26, 26, 0.9);
}

.drop-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.drop-description {
    font-size: 1rem;
    color: #666;
    opacity: 0.8;
}



.drop-zone.dragover {
    border-color: #007AFF;
    background-color: rgba(0, 122, 255, 0.1);
    transform: scale(1.02);
}

.drop-zone.tapped {
    border-color: #007AFF;
    background-color: rgba(0, 122, 255, 0.15);
    transform: scale(0.98);
}

.drop-message {
    text-align: center;
    pointer-events: none;
}

.drop-icon {
    margin-bottom: 1rem;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Target the logo image directly since it's no longer wrapped in .drop-icon */
.drop-message img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin-bottom: 24px;
}

.drop-message h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

body.dark-theme .drop-message h2 {
    color: #ffffff;
}

.drop-message p {
    font-size: 1rem;
    color: #666;
    opacity: 0.8;
}

body.dark-theme .drop-message p {
    color: #cccccc;
}

.mobile-hint {
    font-size: 0.9rem !important;
    color: #007AFF !important;
    opacity: 0.9 !important;
    margin-top: 1rem !important;
    font-weight: 500;
}

body.dark-theme .mobile-hint {
    color: #4DA6FF !important;
}

.cloud-hint {
    font-size: 0.8rem !important;
    color: #28a745 !important;
    opacity: 0.8 !important;
    margin-top: 0.5rem !important;
    font-weight: 400;
}

body.dark-theme .cloud-hint {
    color: #4CAF50 !important;
}

/* Carousel Styles */
.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-container.hidden {
    display: none;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 70vh;
    max-width: 95vw;
    min-height: 400px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.swiper-slide .lottie-container {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide .lottie-container svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Loading Spinner Styles */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 122, 255, 0.2);
    border-left: 4px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

body.dark-theme .loading-text {
    color: #cccccc;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.dark-theme .global-loading-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.global-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.large-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-left: 6px solid #007AFF;
    margin-bottom: 24px;
}

.large-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.loading-progress {
    font-size: 14px;
    opacity: 0.8;
    color: #cccccc;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    margin-top: 0 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold !important;
    color: white !important;
}

body.dark-theme .swiper-button-next,
body.dark-theme .swiper-button-prev {
    background: rgba(255, 255, 255, 0.2) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

body.dark-theme .swiper-button-next:hover,
body.dark-theme .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Swiper Pagination */
.swiper-pagination {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center !important;
    z-index: 25;
}

.pagination-counter {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-theme .pagination-counter {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Carousel Info */
.carousel-info {
    position: absolute;
    top: 40px;
    right: -40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-top: 8px;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-theme .file-name {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* QR Code Styles */
.qr-section {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background: rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    /* border-radius: 16px; */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
}

body.dark-theme .qr-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.qr-code {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    display: none;
    border: 2px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.qr-code canvas,
.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.qr-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-message {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

body.dark-theme .qr-message {
    color: #cccccc;
}



.qr-success {
    display: none;
}

.qr-error {
    color: #dc3545;
}

.qr-uploading {
    color: #007AFF;
}

.qr-url {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    word-break: break-all;
    text-align: center;
    max-width: 200px;
    line-height: 1.3;
    opacity: 0.8;
}

body.dark-theme .qr-url {
    color: #aaa;
}

.qr-url.hidden {
    display: none;
}

.background-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 20;
}

.swatch-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.light-swatch {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

.light-swatch:hover {
    border-color: #007AFF;
}

.dark-swatch {
    background-color: #000000;
    border-color: #333333;
}

.dark-swatch:hover {
    border-color: #007AFF;
}

.swatch.active {
    border-color: #007AFF;
    transform: scale(1.1);
}

/* Animation for smooth transitions */
.drop-zone,
.carousel-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* File upload visual feedback */
.drop-zone.drag-enter {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 0.7; }
    100% { opacity: 0.9; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .swiper {
        height: 60vh;
        min-height: 300px;
    }
    
    .swiper-slide {
        padding: 10px;
    }
    
    .swiper-slide .lottie-container {
        width: 100%;
        height: 100%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }

    .carousel-info {
        padding: 12px;
    }

    .swiper-pagination {
        bottom: 8px;
    }

    .file-name {
        font-size: 12px;
        max-width: 250px;
    }

    .background-controls {
        bottom: 12px;
        right: 12px;
    }

    .swatch {
        width: 32px;
        height: 32px;
    }
    
    /* Mobile QR Code Styles */
    .qr-container {
        padding: 16px;
        margin: 0 12px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .qr-message {
        font-size: 11px;
    }
    
    .mobile-hint {
        font-size: 0.8rem !important;
        margin-top: 0.8rem !important;
    }
    
    .cloud-hint {
        font-size: 0.7rem !important;
        margin-top: 0.6rem !important;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .swiper {
        height: 50vh;
        min-height: 250px;
    }
    
    .carousel-info {
        padding: 8px;
    }
    
    .file-name {
        font-size: 11px;
    }
    
    .background-controls {
        bottom: 8px;
        right: 8px;
    }
    
    .swatch {
        width: 28px;
        height: 28px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .swiper {
        height: 75vh;
        max-width: 90vw;
    }
    
    .swiper-slide {
        padding: 30px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .swiper {
        height: 55vh;
        min-height: 250px;
    }
    
    .swiper-slide {
        padding: 8px;
    }
    
    .swiper-slide .lottie-container {
        width: 100%;
        height: 100%;
    }
    
    .drop-message h2 {
        font-size: 1.3rem;
    }
    
    .drop-message p {
        font-size: 0.9rem;
    }
    
    .mobile-hint {
        font-size: 0.75rem !important;
        margin-top: 0.6rem !important;
    }
    
    .cloud-hint {
        font-size: 0.65rem !important;
        margin-top: 0.4rem !important;
    }
} 