/* Custom Styles */
@keyframes glowing {
    0% { box-shadow: 0 0 5px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.6); }
    100% { box-shadow: 0 0 5px rgba(79, 70, 229, 0.3); }
}

.glow-effect {
    animation: glowing 2s infinite;
}

/* Grid Background */
.bg-grid-slate-900\/\[0\.04\] {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-grid-slate-700\/\[0\.03\] {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Card Styles */
#idCard {
    transition: all 0.3s ease;
    max-width: 100%;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        0 4px 6px -2px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(79, 70, 229, 0.1),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
}

#idCard:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3), 
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(79, 70, 229, 0.2),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced card elements */
#cardId {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QR Code Styles */
#qrCode {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrCode img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Card Title Gradient Workaround for export */
#cardTitle {
    position: relative;
}

.text-gradient-effect {
    background: linear-gradient(to right, #4F46E5, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Status Badge Fixes */
.status-badge {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    line-height: 1.25;
}

/* Button Hover Styles */
#downloadCard {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#downloadCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#downloadCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

#downloadCard:hover::before {
    left: 100%;
}

#downloadCard svg {
    transition: transform 0.2s ease;
}

#downloadCard:hover svg {
    transform: translateY(2px);
}

/* Form Focus Styles */
input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5);
}

/* Modal Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#idCardModal {
    animation: fadeIn 0.3s ease-out;
}

#idCardModal > div {
    animation: slideUp 0.4s ease-out;
}

/* Typography Adjustments */
h1, h2, h3 {
    letter-spacing: -0.025em;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #4F46E5, #10B981);
}

/* Hover Card Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
}

/* Make the checkmark customized */
input[type="checkbox"] {
    accent-color: #4F46E5;
}

/* Animation for status badge */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive styles */
@media (max-width: 640px) {
    #idCard {
        padding: 1rem;
    }
    
    #idCard .p-8 {
        padding: 1rem;
    }
    
    #idCard .p-6 {
        padding: 0.75rem;
    }
    
    #idCard .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    #idCard .text-xl {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }
    
    #idCard .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    #idCard .space-y-6 > div {
        margin-bottom: 0.75rem;
    }
}

/* Loading animation */
@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* SEO improvements - hiding visually but keeping for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} 