.certificate-template-page,
.pda-provider-badge-page,
.pda-activity-logo-page {
    min-height: 100vh;
}

.certificate-template-page .dashboard-container,
.pda-provider-badge-page .dashboard-container,
.pda-activity-logo-page .dashboard-container {
    background-color: #ffffff;
    min-height: 100vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 40px 0px #0000000F;
}

.certificate-template-page .dashboard-header,
.pda-provider-badge-page .dashboard-header,
.pda-activity-logo-page .dashboard-header {
    background-color: #E1EEF9;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

.certificate-template-page .dashboard-title,
.pda-provider-badge-page .dashboard-title,
.pda-activity-logo-page .dashboard-title {
    color: #1a3e61;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.certificate-template-page .dashboard-content,
.pda-provider-badge-page .dashboard-content,
.pda-activity-logo-page .dashboard-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px 40px;
}

.certificate-template-page .section-title,
.pda-provider-badge-page .section-title,
.pda-activity-logo-page .section-title {
    color: #033152;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.certificate-template-page .section-subtitle,
.pda-provider-badge-page .section-subtitle,
.pda-activity-logo-page .section-subtitle {
    color: #2D2D2D;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.template-status-banner {
    background: #EAF6EE;
    border: 1px solid #B6DEC3;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.template-status-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0E8A52;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-status-text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #1f3d2c;
    font-size: 14px;
}

.template-card {
    background: #ffffff;
    border: 1px solid #E0E7F0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.branding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.branding-item {
    border: 1px solid #D7E2EE;
    border-radius: 12px;
    padding: 16px;
}

.branding-item-title {
    color: #033152;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.branding-item-subtitle {
    color: #2D2D2D;
    font-size: 14px;
    margin: 0 0 12px;
}

.upload-panel,
.branding-preview-panel {
    border: 1px solid #c7d7ea;
    border-radius: 12px;
    background: #e9effa;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.upload-panel {
    flex-direction: column;
    gap: 16px;
}

.branding-preview-panel {
    margin-bottom: 16px;
    overflow: hidden;
}

.branding-preview-image {
    display: block;
    max-width: 100%;
    max-height: 210px;
    object-fit: contain;
}

.upload-input-file,
.certificate-template-page input[type="file"].d-none {
    display: none;
}

.upload-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #023457;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(2, 52, 87, 0.2);
}

.upload-help {
    margin: 0;
    color: #2D2D2D;
    font-size: 18px;
}

.selected-file-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2D2D2D;
    font-size: 20px;
    line-height: 1.3;
}

.remove-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F04438;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    border: 0;
    background: transparent;
}

.template-action-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    padding: 0 30px 40px;
}

.template-nav-btn {
    min-height: 46px;
    border-radius: 999px;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.template-nav-btn-prev {
    color: #06233d;
    background: #ffffff;
    border: 1.5px solid #06233d;
    padding-right: 20px;
}

.template-nav-btn-next {
    color: #ffffff;
    background: #023457;
    border: 1.5px solid #06233d;
    padding-left: 20px;
    box-shadow: 0 3px 6px rgba(2, 52, 87, 0.22);
}

.template-nav-icon {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-nav-icon-prev {
    color: #2b73b8;
    background: #eef6ff;
}

.template-nav-icon-next {
    color: #ffffff;
    background: #2a74af;
}

.badge-intro,
.activity-logo-intro {
    margin-bottom: 14px;
}

.badge-preview-card,
.activity-logo-preview-card {
    min-height: 330px;
    border: 1px solid #D7E2EE;
    border-radius: 16px;
    background: #F7FAFE;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    margin-bottom: 18px;
}

.badge-image-placeholder,
.activity-logo-placeholder {
    width: min(260px, 64vw);
    aspect-ratio: 1;
    border: 1px solid #D7E2EE;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(26, 62, 97, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.activity-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.badge-actions,
.badge-share-actions,
.activity-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-actions,
.activity-logo-actions {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #E0E7F0;
}

.activity-logo-actions {
    justify-content: flex-end;
}

.badge-share-actions {
    justify-content: flex-start;
}

.badge-action-btn,
.badge-share-btn,
.asset-download-btn {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    text-decoration: none !important;
}

.badge-action-btn:hover,
.badge-share-btn:hover,
.asset-download-btn:hover,
.badge-action-btn *,
.badge-share-btn *,
.asset-download-btn * {
    text-decoration: none !important;
}

.activity-logo-actions .asset-download-btn .mud-button-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
}

.badge-action-btn-primary,
.asset-download-btn-primary {
    background-color: #023457 !important;
    color: #ffffff !important;
}

.usage-rules-panel {
    border-left: 4px solid #1f66ad;
    border-radius: 8px;
    background: #F7FAFE;
    padding: 16px 18px;
}

.usage-rules-title {
    color: #033152;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.usage-rules-list {
    color: #2D2D2D;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 900px) {
    .certificate-template-page .dashboard-content,
    .pda-provider-badge-page .dashboard-content,
    .pda-activity-logo-page .dashboard-content,
    .template-action-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .branding-grid {
        grid-template-columns: 1fr;
    }

    .upload-panel,
    .branding-preview-panel {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .badge-preview-card,
    .activity-logo-preview-card {
        min-height: 260px;
        padding: 20px;
    }

    .badge-actions,
    .badge-share-actions,
    .activity-logo-actions {
        justify-content: stretch;
    }

    .badge-action-btn,
    .badge-share-btn,
    .asset-download-btn {
        flex: 1 1 100%;
    }
}
