/* Base ID Card System */
:root {
    --uicg-card-shadow: 0 12px 30px rgba(0,0,0,0.12);
    --uicg-font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.uicg-card-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 20px;
    margin: 20px 0;
}

.uicg-card-downloadable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: transparent;
    padding: 10px;
}

@media (min-width: 900px) {
    .uicg-card-downloadable {
        flex-direction: row;
        justify-content: center;
    }
}

/* Base Card Element - Common to all templates */
.uicg-card {
    background: white;
    box-shadow: var(--uicg-card-shadow);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.uicg-card * {
    box-sizing: border-box;
}

/* SECTION 1 - STANDARD CARD SIZE */
.uicg-card.horizontal {
    width: 350px;
    height: 220px;
}

.uicg-card.vertical {
    width: 220px;
    height: 350px;
}

/* SECTION 12 - PRINT LAYOUT */
@media print {
    /* Hide Everything */
    body * {
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Target only the card area */
    .card-print-area, 
    .card-print-area *,
    .uicg-card-preview-wrapper,
    .uicg-card-preview-wrapper * {
        visibility: visible;
    }

    .card-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20mm;
    }

    .uicg-card-preview-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 20mm !important;
    }

    .uicg-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 20mm !important;
    }

    /* Hide Admin UI/Buttons */
    .no-print, 
    #adminmenumain, 
    #wpadminbar, 
    .uicg-card-toolbar,
    .uicg-verify-form,
    .uicg-result-header,
    .updated,
    .notice {
        display: none !important;
    }

    /* Centering on page */
    html, body {
        background: white !important;
        height: auto !important;
    }
}
