/* Card Carousel Styles for Display Page */

/* Card View Tabs */
div#displayPage {
    position: relative;
}
.card-view-tabs {
    display: flex;
        gap: 0.5rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 4px;
        margin-bottom: 2rem;
        overflow-x: auto;
        scrollbar-width: thin;
        justify-content: center;
        position: fixed;
        z-index: 9999;
        top: 0;
        box-shadow: 0 2px 8px rgb(0 0 0 / 31%);
        /* width: 75%; */
}
.online-card-div-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card-view-tabs::-webkit-scrollbar {
    height: 6px;
}

.card-view-tabs::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.card-view-tabs::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.card-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.card-tab:hover {
    background: #e7f1ff;
    border-color: #667eea;
    color: #667eea;
}

.card-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.card-tab i {
    font-size: 1.1rem;
}

/* Carousel Container */
.card-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 50px;
}

.card-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.card-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.carousel-card {
    min-width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-card.active {
    display: block;
    opacity: 1;
}

.carousel-card-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Carousel Navigation Buttons */
button.carousel-nav {
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-left {
    left: 0;
}

.carousel-nav-right {
    right: 0;
}

.carousel-nav i {
    font-size: 1.2rem;
}

/* QR Display in Carousel */
.carousel-card #generatedQR {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.qr-buttons-heading h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

/* URL Copy Section */
.url-copy-section {
    width: 100%;
    margin-bottom: 1rem;
}

.url-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.url-input-wrapper:focus-within {
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.url-textarea {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #495057;
    resize: none;
    height: 65px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
}

.url-textarea:focus {
    outline: none;
}

.url-textarea::selection {
    background: #0d6efd;
    color: white;
}
/* .profile-qrcode-div {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
} */
.copy-icon-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-left: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    color: #6c757d;
}
.copy-icon-btn:hover {
    background: #0d6efd;
    color: white;
}

.copy-icon-btn:active {
    transform: scale(0.95);
}

.copy-icon-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* Responsive adjustments for URL copy */
@media (max-width: 480px) {
    .url-textarea {
        font-size: 0.75rem;
        padding: 0.75rem 0.875rem;
        height: 40px;
    }
    
    .copy-icon-btn {
        padding: 0.625rem 0.875rem;
        min-width: 45px;
    }
    
    .copy-icon-btn i {
        font-size: 1rem;
    }
}

.profile-qrcode-image-div {
    max-width: 24%;
}

.profile-qrcode-image-div img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dc-div-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0rem;
}
.Download-qrcode-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 350px;
}

.profile-card-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-card-buttons:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.profile-card-buttons i {
    font-size: 1.1rem;
}

/* Digital Wallet Card in Carousel */
#dc-digital-wallet-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}

/* Online Profile View */
.user-facing-profile-look {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.heading-display-profile {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 500px;
}

/* .userprofile-dynamic-html {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    max-width: 450px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
} */

/* Design Card Placeholder */
.design-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.design-card-placeholder h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.design-card-placeholder p {
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-buttons-heading h2 {
        font-size: 1rem;
        
    }
    .profile-qrcode-div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .card-view-tabs {
        padding: 0.75rem;
        gap: 0.375rem;
    }

    .card-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .card-tab span {
        display: none;
    }

    .card-tab i {
        font-size: 1.25rem;
    }

    .card-carousel-container {
        padding: 0 2.5rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav i {
        font-size: 1rem;
    }

    .carousel-card-content {
        padding: 1.5rem 1rem;
        min-height: 400px;
    }

    .carousel-card-title {
        font-size: 1.25rem;
    }

    .profile-qrcode-image-div {
        max-width: 40%;
    }

    .Download-qrcode-buttons {
        max-width: 280px;
    }

    .profile-card-buttons {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .carousel-nav-right, .carousel-nav-left{
        display: none;
    }
    .card-carousel-container {
        padding: 0;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-card-content {
        padding: 1.25rem 0.75rem;
    }

    .profile-qrcode-image-div {
        /* max-width: 240px; */
    }

    .Download-qrcode-buttons {
        max-width: 240px;
    }
}
/* Landscape Warning for Online Profile View */
.landscape-warning {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    color: #495057;
}

.landscape-warning i.fa-mobile-alt {
    font-size: 4rem;
    color: #0d6efd;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.landscape-warning h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.landscape-warning p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.rotate-icon i {
    font-size: 2.5rem;
    color: #0d6efd;
    animation: rotate 2s linear infinite;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

/* Show warning in landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #online-profile-view .landscape-warning {
        display: flex;
    }
    
    #online-profile-view #profileContent {
        display: none;
    }
    
    #online-profile-view .carousel-card-title {
        display: none;
    }
}
/* Additional media query for landscape with height <= 768px (e.g., iPhone 14 Pro Max: 932x430) */
@media (max-height: 768px) and (orientation: landscape) {
    #online-profile-view .landscape-warning {
        display: flex;
    }
    
    #online-profile-view #profileContent {
        display: none;
    }
    
    #online-profile-view .carousel-card-title {
        display: none;
    }
}