/* IPV Alumni Card Styles - Based on cartao.html */

.ipv-alumni-card-container {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 40px auto;
    position: relative;
}

.ipv-alumni-card {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: inline-block;
}

.card-image {
    width: 100%;
    border-radius: 16px;
    display: block;
    max-width: 100%;
    height: auto;
}

.card-text {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: right;
    right: 40px;
}

.alumni-name {
    bottom: 80px;
    font-size: 32px;
}

.alumni-number {
    bottom: 40px;
    font-size: 24px;
}

.qr-code {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border: 4px solid white;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.download-btn {
    margin-top: 40px;
    padding: 12px 24px;
    font-size: 18px;
    background-color: #00a0e3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.download-btn:hover {
    background-color: #008ac3;
}

/* Responsive design */
@media (max-width: 768px) {
    .ipv-alumni-card-container {
        width: 95% !important;
        margin: 20px auto;
    }
    
    .card-text {
        right: 20px;
    }
    
    .alumni-name {
        bottom: 60px;
        font-size: 24px;
    }
    
    .alumni-number {
        bottom: 30px;
        font-size: 18px;
    }
    
    .qr-code {
        top: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
    }
    
    .download-btn {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card-text {
        right: 15px;
    }
    
    .alumni-name {
        bottom: 50px;
        font-size: 20px;
    }
    
    .alumni-number {
        bottom: 25px;
        font-size: 16px;
    }
    
    .qr-code {
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
}

/* Loading state */
.ipv-alumni-card-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ipv-alumni-card-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00a0e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

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

/* Error state */
.ipv-alumni-card-error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

/* Success message */
.ipv-alumni-success {
    background-color: #e8f5e8;
    border: 1px solid #4CAF50;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}
