/**
 * ID Card Template Styles
 */
.cloudi7-icg-card-preview-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f1;
    border-radius: 8px;
}

.cloudi7-icg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    border: 1px solid #ddd;
}

/* Horizontal Layout */
.cloudi7-icg-card.horizontal {
    width: 350px;
    height: 220px;
}

/* Vertical Layout */
.cloudi7-icg-card.vertical {
    width: 220px;
    height: 350px;
}

/* Card Sides */
.cloudi7-icg-card-front, .cloudi7-icg-card-back {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

/* Header Area */
.cloudi7-icg-card-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.cloudi7-icg-card-logo {
    width: 40px;
    height: 40px;
    background: #eee;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cloudi7-icg-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #0073aa;
    text-transform: uppercase;
}

/* Body Area */
.cloudi7-icg-card-body {
    display: flex;
    flex: 1;
    gap: 15px;
}

.cloudi7-icg-card-photo {
    width: 80px;
    height: 100px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.cloudi7-icg-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloudi7-icg-card-info p strong {
    color: #333;
}

/* QR Code */
.cloudi7-icg-card-qr {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.cloudi7-icg-card-qr img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Vertical specific QR adjustment */
.cloudi7-icg-card.vertical .cloudi7-icg-card-qr {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
}

.cloudi7-icg-card-info {
    flex: 1;
    font-size: 11px;
}

.cloudi7-icg-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
}

.cloudi7-icg-card-detail {
    margin-bottom: 3px;
    line-height: 1.2;
}

.cloudi7-icg-card-label {
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 70px;
}

/* Back Side Styles */
.cloudi7-icg-card-back {
    text-align: center;
    justify-content: center;
}

.cloudi7-icg-card-back-text {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    padding: 0 10px;
}

.cloudi7-icg-card-back-footer {
    margin-top: 20px;
    font-size: 10px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
