/**
 * Modern ID Card Template Styles
 */

/* SECTION 5 - TYPOGRAPHY */
.uicg-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 */
.uicg-card.modern.horizontal {
    width: 350px;
    height: 220px;
}

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

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

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

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

/* SECTION 3 - BODY */
.uicg-card.modern .uicg-card-body {
    padding: 15px;
    display: flex;
    gap: 15px;
}

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

/* Left Column: Photo */
.uicg-card.modern .uicg-photo-column {
    width: 80px;
}

.uicg-card.modern .uicg-photo-box {
    width: 80px;
    height: 95px;
    border: 3px solid #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.uicg-card.modern .uicg-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.uicg-card.modern .uicg-user-name {
    font-size: 20px; /* SECTION 5 */
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 2px;
}

.uicg-card.modern .uicg-id-number {
    font-size: 14px; /* SECTION 5 */
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}

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

.uicg-card.modern .uicg-field {
    font-size: 12px; /* SECTION 5 */
    display: flex;
    gap: 5px;
}

.uicg-card.modern .uicg-label {
    font-weight: normal;
    color: #64748b;
}

.uicg-card.modern .uicg-value {
    font-weight: 600;
    color: #334155;
}

/* QR Code Section */
.uicg-card.modern .uicg-qr-section {
    position: absolute;
    bottom: 15px;
    right: 15px;
    text-align: center;
}

.uicg-card.modern.vertical .uicg-qr-section {
    position: static;
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uicg-card.modern .uicg-qr-code {
    width: 50px;
    height: 50px;
}

.uicg-card.modern .uicg-qr-label {
    display: block;
    font-size: 8px;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 2px;
}

/* SECTION 3 - FOOTER */
.uicg-card.modern .uicg-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;
}

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

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

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

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

.uicg-card.modern.back .uicg-card-body {
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.uicg-card.modern.back .uicg-contact-info {
    margin-bottom: 20px;
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
    text-align: center; /* User Request: center aligned */
}

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

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

.uicg-card.modern.back .uicg-terms-section {
    font-size: 9px;
    color: #64748b;
}

.uicg-card.modern.back .uicg-terms-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #475569;
}

.uicg-card.modern.back .uicg-terms-content {
    line-height: 1.4;
}
