/* Player ID Card Styles */
.id-card-modal .modal-content {
    background: transparent;
    border: none;
}

.id-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    width: 100%;
}

.id-card-container {
    width: 450px;
    height: 380px;
    background: #fff;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    color: #333;
    border: 1px solid #e0e0e0;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Responsiveness */
@media (max-width: 500px) {
    .id-card-wrapper {
        padding: 10px;
    }
    .id-card-container {
        transform: scale(0.85);
        margin: -30px -40px; /* Offset the scale transformation */
    }
}

@media (max-width: 400px) {
    .id-card-container {
        transform: scale(0.7);
        margin: -60px -70px;
    }
}

/* Background Design */
.id-card-bg-shades {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.id-card-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#556ee6 0.5px, transparent 0.5px);
    background-size: 15px 15px;
    opacity: 0.08;
}

.id-card-watermark {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.id-card-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shade-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(85, 110, 230, 0.05);
    border-radius: 50%;
}

.shade-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(85, 110, 230, 0.03);
    border-radius: 50%;
}

/* Header Section */
.id-card-header {
    background: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #556ee6;
    position: relative;
    z-index: 2;
}

.id-card-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin-right: 15px;
}

.id-card-title-box h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: #2a3042;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-card-title-box p {
    font-size: 9px;
    margin: 0;
    color: #444;
    font-weight: 500;
    line-height: 1.3;
}

.id-card-contact {
    margin-top: 2px;
    font-size: 8.5px;
    color: #666;
}

/* Content Section */
.id-card-body {
    display: flex;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.id-card-photo-col {
    width: 110px;
    margin-right: 20px;
}

.id-card-photo {
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.id-card-info-col {
    flex: 1;
}

.info-item {
    margin-bottom: 8px;
}

.info-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    display: block;
    margin-bottom: 0px;
}

.info-value {
    font-size: 13px;
    color: #2a3042;
    font-weight: 600;
    display: block;
}

.info-value.cak-id {
    color: #556ee6;
    font-weight: 800;
    font-size: 16px;
}

.info-value.player-name {
    font-size: 15px;
}

/* Footer Section */
.id-card-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #556ee6;
    color: #fff;
    padding: 5px 20px;
    font-size: 10px;
    text-align: right;
    z-index: 2;
}

/* Download Action */
.id-card-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-download-id {
    background: #556ee6;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(85, 110, 230, 0.3);
}

.btn-download-id:hover {
    background: #485ec4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 110, 230, 0.4);
    color: #fff;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.spin {
    animation: spin 2s linear infinite;
    display: inline-block;
}

/* Profile Page specific adjustments for pills */
.info-pill-action {
    background-color: #eff6ff !important; /* var(--blue-50) */
    border-color: #bfdbfe !important; /* var(--blue-200) */
    color: #1d4ed8 !important; /* var(--blue-700) */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.info-pill-action:hover {
    background-color: #2563eb !important; /* var(--blue-600) */
    border-color: #2563eb !important;
    color: white !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4) !important;
}

.info-pill-action:hover .info-pill-label,
.info-pill-action:hover .info-pill-value {
    color: white !important;
}
