 /* Fixed Header */
 .app-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Design Processing Animation */
.card-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.98), rgba(243, 232, 255, 0.98));
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out forwards;
    padding-top: 120px;
}

.card-processing-content {
    text-align: center;
    color: #343a40;
    max-width: 500px;
    padding: 40px;
}

.card-animation-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: #e91e63;
    animation: cardFloat 3s ease-in-out infinite;
}

.sparkle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.3), transparent);
    animation: sparkle 2s infinite ease-in-out;
}

.pulse-rings .pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #e91e63;
    opacity: 0;
    animation: ripple 2s infinite ease-out;
}
.pulse-rings .ring-2 { animation-delay: 0.7s; }
.pulse-rings .ring-3 { animation-delay: 1.4s; }

.card-processing-text h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-processing-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.1);
}

.card-processing-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #495057;
    min-width: 80px;
}

.card-processing-stats .stat-item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #e91e63;
}

.card-processing-stats .stat-item span {
    font-size: 13px;
    font-weight: 600;
}

/* Image preview modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e91e63;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.download-btn {
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateX(50%) scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes cardFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15) rotate(5deg); opacity: 0.9; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.generated-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.generated-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
}

.header-gradient {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #673ab7 100%);
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.header-title {
    background: linear-gradient(90deg, #ffffff, #fce7f3, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease infinite;
    background-size: 200% auto;
}

@keyframes textGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-badge i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    margin-top: auto;
}

.footer-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #e91e63;
    transform: translateX(5px);
}

.footer-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-icon:hover {
    background: #e91e63;
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem 0;
    }
    
    .header-gradient h1 {
        font-size: 1.25rem !important;
    }
    
    .logo-container img {
        height: 3rem !important;
        border-width: 2px !important;
    }
    
    .header-badge {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
}

/* Mobile Processing Overlay */
@media (max-width: 640px) {
    .card-processing-overlay {
        padding: 1rem;
        padding-top: 100px;
    }
    
    .card-processing-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .card-animation-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card-processing-text h3 {
        font-size: 20px !important;
        margin-bottom: 10px;
    }
    
    .card-processing-text p {
        font-size: 0.875rem !important;
    }
    
    .card-processing-stats {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-top: 15px;
    }
    
    .card-processing-stats .stat-item {
        flex-direction: row;
        gap: 10px;
        min-width: 100%;
        justify-content: center;
    }
    
    .card-processing-stats .stat-item i {
        font-size: 20px;
        margin-bottom: 0;
    }
}

/* Mobile Modal */
@media (max-width: 640px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 80vh;
        padding: 0 10px;
    }
    
    .image-modal img {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .download-btn {
        bottom: 10px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    button, .generated-card, .footer-icon, .footer-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .generated-card:hover {
        transform: none;
    }
    
    .logo-container:hover {
        transform: none;
    }
    
    .footer-icon:hover {
        transform: none;
    }
    
    .footer-link:hover {
        transform: none;
    }
}

/* Mobile Typography */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
}

/* Mobile Container Padding */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .p-8 {
        padding: 1.5rem !important;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .app-footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .app-footer h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .app-footer p,
    .app-footer li,
    .app-footer a {
        font-size: 0.875rem;
    }
    
    .footer-icon {
        width: 36px;
        height: 36px;
    }
}

/* Mobile Grid Adjustments */
@media (max-width: 640px) {
    .grid {
        gap: 1rem !important;
    }
    
    /* Make upload area larger on mobile */
    .border-dashed {
        min-height: 120px !important;
    }
    
    /* Stack form elements vertically */
    .flex-wrap {
        flex-direction: column !important;
    }
}

/* Mobile Card Gallery */
@media (max-width: 640px) {
    .generated-card {
        margin-bottom: 1rem;
    }
    
    .generated-card img {
        border-radius: 0.5rem;
    }
}

/* Improve touch targets */
@media (max-width: 640px) {
    button,
    a,
    input[type="file"],
    .cursor-pointer {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    /* Larger remove button */
    .absolute.top-2.right-2 {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.25rem !important;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile Input Fields */
@media (max-width: 640px) {
    input[type="text"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }
}

/* Mobile rounded corners */
@media (max-width: 640px) {
    .rounded-2xl {
        border-radius: 1rem !important;
    }
    
    .rounded-xl {
        border-radius: 0.75rem !important;
    }
}

/* Optimize shadows for mobile */
@media (max-width: 640px) {
    .shadow-2xl {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    }
    
    .shadow-lg {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Mobile spacing optimizations */
@media (max-width: 640px) {
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
    
    .gap-4 {
        gap: 0.75rem !important;
    }
    
    .gap-6 {
        gap: 1rem !important;
    }
}