/* Modern ID Card Preview Layout */
.cloudi7-icg-preview-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Card Toolbar */
.cloudi7-icg-card-toolbar {
    background: #fff;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dcdcde;
}

.cloudi7-icg-toolbar-left, .cloudi7-icg-toolbar-right {
    display: flex;
    gap: 12px;
}

/* Card Wrapper */
.cloudi7-icg-card-display-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 20px;
}

/* Base Card Styling */
.cloudi7-icg-card.modern {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Horizontal Size */
.cloudi7-icg-card.horizontal {
    width: 350px;
    height: 220px;
}

/* Vertical Size */
.cloudi7-icg-card.vertical {
    width: 220px;
    height: 350px;
}

/* Zones */
.cloudi7-icg-card-zone-header {
    height: 60px;
    background: #2271b1; /* Default, can be overridden */
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.cloudi7-icg-card-zone-body {
    flex: 1;
    padding: 15px;
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 15px;
    background: #fff;
}

.cloudi7-icg-card-zone-footer {
    height: 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
}

/* Header Elements */
.cloudi7-icg-header-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}

.cloudi7-icg-header-content {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.cloudi7-icg-header-org-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cloudi7-icg-header-card-type {
    display: block;
    font-size: 9px;
    opacity: 0.9;
    font-weight: 400;
}

/* Body Elements */
.cloudi7-icg-body-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cloudi7-icg-user-photo-wrap {
    width: 85px;
    height: 100px;
    border: 3px solid #f0f0f1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cloudi7-icg-user-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloudi7-icg-body-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cloudi7-icg-user-name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1d2327;
    line-height: 1.2;
}

.cloudi7-icg-id-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 5px;
}

.cloudi7-icg-dynamic-list {
    font-size: 10px;
    line-height: 1.4;
}

.cloudi7-icg-dynamic-item {
    margin-bottom: 2px;
}

.cloudi7-icg-dynamic-item label {
    font-weight: 600;
    color: #646970;
}

/* QR Code */
.cloudi7-icg-card-qr-wrap {
    position: absolute;
    bottom: 35px;
    right: 15px;
    text-align: center;
}

.cloudi7-icg-card-qr-wrap img {
    width: 45px;
    height: 45px;
    display: block;
    margin: 0 auto;
}

.cloudi7-icg-qr-label {
    font-size: 7px;
    font-weight: 700;
    color: #999;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Back Card Specifics */
.cloudi7-icg-card-back .cloudi7-icg-card-zone-header {
    background: #fcfcfc;
    color: #333;
    border-bottom: 2px solid #2271b1;
    justify-content: center;
}

.cloudi7-icg-card-back .cloudi7-icg-card-zone-body {
    display: block;
    font-size: 10px;
    line-height: 1.6;
    padding: 20px;
}

.cloudi7-icg-back-contact-info {
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.cloudi7-icg-terms-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.cloudi7-icg-terms-section h4 {
    margin: 0 0 5px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.cloudi7-icg-terms-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 9px;
    color: #777;
}

/* Vertical Adjustments */
.cloudi7-icg-card.vertical .cloudi7-icg-card-zone-body {
    grid-template-columns: 1fr;
    text-align: center;
}

.cloudi7-icg-card.vertical .cloudi7-icg-user-photo-wrap {
    margin: 0 auto 10px;
}

.cloudi7-icg-card.vertical .cloudi7-icg-card-qr-wrap {
    position: static;
    margin-top: 10px;
}

/* Print Optimization */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .cloudi7-icg-preview-container { margin: 0; padding: 0; max-width: none; }
    .cloudi7-icg-card-display-grid { gap: 20px; }
    .cloudi7-icg-card.modern { box-shadow: none; border: 1px solid #000; }
}
