/* A4 Card Modal Styles */

.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.card-modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
    margin: auto;
    max-height: none;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover {
    background: #dc2626;
}

.a4-card {
    background: white;
    width: 100%;
    aspect-ratio: 1/1.414;
    border: 2px solid #2D5F3F;
    padding: 0;
    font-family: 'SolaimanLipi';
    position: relative;
    padding-top: 30px;
}

.card-top-gap {
    height: 0;
    background: white;
}

.card-header-banner {
    width: 100%;
    border-bottom: 3px linear-gradient(90deg, #1a3d2b, #2D5F3F, #2D5F3F, #1a3d2b);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-slogan {
    background: white;
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.6;
    border-bottom: 2px solid #e5e7eb;
    font-family: 'Li Shadhinata V2';
}

.card-center-info {
    background: linear-gradient(90deg, #1a3d2b, #2D5F3F, #2D5F3F, #1a3d2b);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-voter-details {
    background: #e8f3ee;
    padding: 20px 30px;
}

.detail-row {
    padding: 8px 0;
    font-size: 1rem;
    line-height: 1.8;
}

.detail-label {
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
}

.card-footer-text {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: normal;
    color: #6b7280;
}

.card-actions-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-options-menu {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px linear-gradient(90deg, #1a3d2b, #2D5F3F, #2D5F3F, #1a3d2b);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    min-width: 200px;
}

.download-options-menu.hidden {
    display: none;
}

.download-option-btn {
    background: linear-gradient(90deg, #1a3d2b, #2D5F3F, #2D5F3F, #1a3d2b);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Li Shadhinata V2';
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.download-option-btn:hover {
    background: #1a3d2b;
    transform: scale(1.05);
}

/* Download, Copy and Share Button Styles */
.download-btn {
    background: linear-gradient(90deg, #059669, #047857);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Li Shadhinata V2';
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.3);
}

.download-btn:hover {
    background: linear-gradient(90deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 150, 105, 0.4);
}

.copy-btn {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Li Shadhinata V2';
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(90deg, #6d28d9, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.4);
}

.share-btn {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Li Shadhinata V2';
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.share-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}