/**
 * Modern ID Card Template Styles
 */

/* SECTION 5 - TYPOGRAPHY */
.cloudi7-icg-card.modern {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12); /* SECTION 6 */
    border-radius: 12px; /* SECTION 6 */
    overflow: hidden;
    position: relative;
    color: #333;
    border: 1px solid rgba(0,0,0,0.05); /* Minimal borders (Section 9) */
}

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

.cloudi7-icg-card.modern.vertical {
    width: 220px;
    height: 350px;
}

/* SECTION 3 - FRONT CARD STRUCTURE - HEADER */
.cloudi7-icg-card.modern .cloudi7-icg-card-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); /* gradient (Section 3) */
    padding: 3px 12px;
    display: flex;
    align-items: center;
    height: 38px;
    color: white;
}

.cloudi7-icg-card.modern .cloudi7-icg-logo {
    height: 30px; /* SECTION 7 */
    border-radius: 5px; /* User Request: 5px corner rounder */
    object-fit: contain;
    flex-shrink: 0;
}

.cloudi7-icg-card.modern .cloudi7-icg-org-name {
    flex-grow: 1;
    text-align: left; /* User Request: left align */
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 8px;
}

/* SECTION 3 - BODY */
.cloudi7-icg-card.modern .cloudi7-icg-card-body {
    padding: 8px 12px 0px;
    display: flex;
    gap: 12px;
}

.cloudi7-icg-card.modern.vertical .cloudi7-icg-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Left Column: Photo */
.cloudi7-icg-card.modern .cloudi7-icg-photo-column {
    width: 80px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px;
}

.cloudi7-icg-card.modern .cloudi7-icg-photo-box {
    width: 75px;
    height: 75px; /* Square dimension requested by user */
    border: 3px solid #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cloudi7-icg-card.modern .cloudi7-icg-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Horizontal specific inner sizing */
.cloudi7-icg-card.modern.horizontal .cloudi7-icg-photo-column {
    gap: 6px;
}
.cloudi7-icg-card.modern.horizontal .cloudi7-icg-photo-box {
    height: 75px;
}

/* Right Column: Info */
.cloudi7-icg-card.modern .cloudi7-icg-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cloudi7-icg-card.modern.vertical .cloudi7-icg-info-column {
    width: 100%;
}

.cloudi7-icg-card.modern .cloudi7-icg-user-name {
    font-size: 16px; /* SECTION 5 */
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0px;
    line-height: 1.1;
}

.cloudi7-icg-card.modern .cloudi7-icg-id-number {
    font-size: 12px; /* SECTION 5 */
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 4px;
    line-height: 1.1;
}

.cloudi7-icg-card.modern .cloudi7-icg-fields {
    display: flex;
    flex-direction: column;
    gap: 4px; /* SECTION 11 */
}

.cloudi7-icg-card.modern.vertical .cloudi7-icg-fields {
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.cloudi7-icg-card.modern .cloudi7-icg-field {
    font-size: 10px; /* SECTION 5 */
    display: flex;
    gap: 5px;
    line-height: 1.1;
}

.cloudi7-icg-card.modern .cloudi7-icg-label {
    font-weight: 600;
    color: #334155;
    padding-right: 3px;
}

.cloudi7-icg-card.modern .cloudi7-icg-value {
    font-weight: normal;
    color: #64748b;
}

/* Signature Block */
.cloudi7-icg-card.modern .cloudi7-icg-signature-box {
    position: absolute;
    bottom: 1px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}
.cloudi7-icg-card.modern .cloudi7-icg-signature-img {
    height: 25px; /* Fits comfortably */
    width: auto;
    object-fit: contain;
}
.cloudi7-icg-card.modern .cloudi7-icg-signature-label {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
    border-top: 1px solid #e2e8f0;
    padding-top: 2px;
}

/* QR Code Section - now inside photo column */
.cloudi7-icg-card.modern .cloudi7-icg-qr-section {
    position: relative !important;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cloudi7-icg-card.modern.vertical .cloudi7-icg-qr-section {
    position: absolute !important;
    bottom: 32px;
    left: 12px;
    margin-top: 0;
    width: auto;
    justify-content: flex-start;
}

.cloudi7-icg-card.modern .cloudi7-icg-qr-code {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cloudi7-icg-card.modern.horizontal .cloudi7-icg-qr-code {
    width: 35px;
    height: 35px;
}

/* SECTION 3 - FOOTER */
.cloudi7-icg-card.modern .cloudi7-icg-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 15px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

.cloudi7-icg-card.modern.vertical .cloudi7-icg-card-footer {
    position: static;
    justify-content: center;
}

.cloudi7-icg-card.modern .cloudi7-icg-verify-text {
    color: #64748b;
}

.cloudi7-icg-card.modern .cloudi7-icg-verify-url {
    color: #2563eb;
    font-weight: 600;
}

/* BACK CARD STYLES */
.cloudi7-icg-card.modern.back {
    border-top: 3px solid #1e40af; /* User Request: 3 px border at top */
}

.cloudi7-icg-card.modern.back .cloudi7-icg-card-body {
    flex-direction: column;
    justify-content: flex-start; /* User request: specific gaps */
    height: 100%;
    padding-top: 15px; /* User request: 15px gap on top */
    gap: 0 !important;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-contact-info {
    margin-bottom: 0px;
    font-size: 11px;
    line-height: 1.2;
    color: #475569;
    text-align: center;
    letter-spacing: 0.2px;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-contact-item {
    margin-bottom: 2px;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-terms-section {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 0.2px;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-terms-title {
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #475569;
    letter-spacing: 0.5px;
}

.cloudi7-icg-card.modern.back .cloudi7-icg-terms-content {
    line-height: 1.2;
}
