/* Migration Service Styling */
.migration-service-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #DCDCFF;
    color: #000000;
    min-height: 100vh;
}

/* Domain Selector Styling */
.handle-input-container {
    display: flex;
    align-items: center;
    gap: 0px;
}

.handle-prefix-input {
    flex-grow: 1;
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
}

.domain-selector {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0 0.375rem 0.375rem 0;
    background-color: #f9fafb;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 120px;
}

.domain-selector:hover:not(:disabled) {
    background-color: #f3f4f6;
}

.domain-selector:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.handle-domain-suffix {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0 0.375rem 0.375rem 0;
    background-color: #f9fafb;
    color: #6b7280;
    min-width: 120px;
    text-align: center;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.title-logo {
    height: 2rem;
    width: auto;
}

.migration-title {
    /* color: #1f2937; */
    color: #000000;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Recommendations Banner Styling */
.recommendations-banner {
    background: #DCDCFF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-header {
    color: #000000;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.recommendation-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.recommendation-list li {
    background: rgba(255, 255, 255, 0.6);
    color: #000000;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 4px solid #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-link {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s ease;
}

.banner-link:hover {
    color: #8B8BFF;
}

.migration-form {
    background: #FFFFFF;
    border: 1px solid #666666;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.form-title {
    color: #000000;
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid #DCDCFF;
    padding-bottom: 8px;
}

.form-1 .form-title {
    border-bottom-color: #8B8BFF;
}

.form-2 .form-title {
    border-bottom-color: #D3FC51;
}

.form-3 .form-title {
    border-bottom-color: #8B8BFF;
}

.form-4 .form-title {
    border-bottom-color: #D3FC51;
}

.input-section {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #666666;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #8B8BFF;
    box-shadow: 0 0 0 3px rgba(139, 139, 255, 0.1);
}

.input-field:disabled {
    background-color: #DCDCFF;
    color: #666666;
    cursor: not-allowed;
}

.display-section {
    margin-bottom: 16px;
}

.display-value {
    padding: 12px 16px;
    background-color: #DCDCFF;
    border: 1px solid #666666;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #000000;
    font-weight: 500;
}

.provider-section {
    margin-bottom: 16px;
    min-height: 24px;
}

.loading-indicator {
    color: #666666;
    font-size: 0.875rem;
    padding: 8px 0;
}

.provider-info {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.provider-logo {
    max-height: 47px;  /* ~110% of input box height (43px) */
    height: auto;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.provider-logo.other-pds {
    width: 47px;
    height: 47px;
    background: #6b7280;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
    margin-right: 8px;
}

.provider-info.bluesky {
    background-color: #DCDCFF;
    color: #000000;
    border: 1px solid #8B8BFF;
}

.provider-info.blacksky {
    background-color: #F2FECB;
    color: #000000;
    border: 1px solid #D3FC51;
}

.provider-info.other {
    background-color: #DCDCFF;
    color: #000000;
    border: 1px solid #666666;
}

.provider-info.none {
    background-color: #F2FECB;
    color: #000000;
    border: 1px solid #D3FC51;
}

.button-section {
    margin: 20px 0;
}

.login-button,
.validate-button,
.migrate-button,
.verify-button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.login-button {
    background-color: #8B8BFF;
    color: #FFFFFF;
}

.login-button:hover:not(:disabled) {
    background-color: #7A7AE6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 139, 255, 0.3);
}

.validate-button {
    background-color: #D3FC51;
    color: #000000;
}

.validate-button:hover:not(:disabled) {
    background-color: #C9F240;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(211, 252, 81, 0.3);
}

.migrate-button {
    background-color: #000000;
    color: #D3FC51;
}

.migrate-button:hover:not(:disabled) {
    background-color: #1A1A1A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.verify-button {
    background-color: #000000;
    color: #8B8BFF;
}

.verify-button:hover:not(:disabled) {
    background-color: #1A1A1A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login-button:disabled,
.validate-button:disabled,
.migrate-button:disabled,
.verify-button:disabled {
    background-color: #666666;
    color: #DCDCFF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.auth-result.success {
    background-color: #000000;
    color: #D3FC51;
    border: 1px solid #D3FC51;
}

.auth-result.error {
    background-color: #666666;
    color: #FFFFFF;
    border: 1px solid #666666;
}

.result-message {
    font-weight: 500;
}

.session-stored-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #000000;
    color: #D3FC51;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid #D3FC51;
}

.validation-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.validation-result.success {
    background-color: #000000;
    color: #D3FC51;
    border: 1px solid #D3FC51;
}

.migration-info {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #DCDCFF;
    color: #000000;
    border: 1px solid #8B8BFF;
    border-radius: 8px;
    font-size: 0.875rem;
    font-style: italic;
}

.validation-error {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #666666;
    color: #FFFFFF;
    border: 1px solid #666666;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form 4 - PLC Verification specific styling */
.instruction-section {
    margin-bottom: 20px;
}

.instruction-text {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding: 12px 16px;
    background-color: #DCDCFF;
    border-left: 4px solid #8B8BFF;
    border-radius: 0 8px 8px 0;
}

.verification-info {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.verification-progress {
    background-color: #DCDCFF;
    color: #8B8BFF;
    border: 1px solid #8B8BFF;
    font-weight: 500;
}

.verification-error {
    background-color: #666666;
    color: #FFFFFF;
    border: 1px solid #666666;
    font-weight: 500;
}

.verification-description {
    background-color: #DCDCFF;
    color: #000000;
    border: 1px solid #666666;
    font-style: italic;
}

.help-link {
    color: #8B8BFF;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s ease;
}

.help-link:hover {
    color: #000000;
}

/* Handle input container with fixed domain suffix */
.handle-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #666666;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.handle-input-container:focus-within {
    border-color: #8B8BFF;
    box-shadow: 0 0 0 3px rgba(139, 139, 255, 0.1);
}

.handle-prefix-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px;
    margin: 0;
}

.handle-prefix-input:focus {
    box-shadow: none !important;
    border: none !important;
}

.handle-domain-suffix {
    background-color: #DCDCFF;
    color: #666666;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 1px solid #666666;
    white-space: nowrap;
    user-select: none;
    cursor: default;
}

/* Frozen form styling */
.form-frozen {
    position: relative;
}

.form-frozen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(1px);
    z-index: 10;
    pointer-events: none;
}

.form-frozen .migration-form {
    opacity: 0.7;
}

.form-frozen .form-title::after {
    content: ' (Locked)';
    color: #9ca3af;
    font-weight: normal;
    font-size: 0.875rem;
}

/* Blob Progress Display Styling */
.blob-progress-container {
    background: #FFFFFF;
    border: 1px solid #666666;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.blob-progress-title {
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-bar-background {
    flex: 1;
    height: 8px;
    background-color: #666666;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #D3FC51;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    min-width: 45px;
}

.blob-status-text {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-style: italic;
}

.blob-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.blob-stat-item {
    display: flex;
    gap: 8px;
}

.stat-label {
    color: #666666;
    font-size: 0.875rem;
}

.stat-value {
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
}

.current-blob {
    background: #DCDCFF;
    border: 1px solid #8B8BFF;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.current-blob-label {
    color: #8B8BFF;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.current-blob-cid {
    color: #000000;
    font-size: 0.75rem;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 8px;
}

.current-blob-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-progress-bar {
    flex: 1;
    height: 4px;
    background-color: #666666;
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background-color: #D3FC51;
    transition: width 0.3s ease;
}

.mini-progress-text {
    font-size: 0.75rem;
    color: #8B8BFF;
    font-weight: 500;
    min-width: 30px;
}

.recent-blobs-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.recent-blobs-title {
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.recent-blobs-list {
    max-height: 120px;
    overflow-y: auto;
}

.recent-blob-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.blob-status-icon {
    color: #D3FC51;
    font-size: 0.75rem;
    font-weight: bold;
}

.blob-description {
    color: #666666;
    font-size: 0.75rem;
}

.more-blobs-indicator {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
    padding: 4px 0;
    text-align: center;
}

.blob-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid #fca5a5;
}

/* Post-migration instructions styling */
.post-migration-instructions {
    background: #DCDCFF;
    border: 1px solid #8B8BFF;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.instructions-title {
    color: #8B8BFF;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.post-migration-instructions p {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.instructions-list {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 8px;
}

.instructions-list a {
    color: #8B8BFF;
    text-decoration: underline;
}

.instructions-list a:hover {
    color: #D3FC51;
}

.instructions-note {
    background: #F2FECB;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-style: italic;
    margin: 12px 0 0 0 !important;
}

/* Responsive design */
@media (max-width: 640px) {
    .migration-service-container {
        padding: 16px;
    }
    
    .migration-form {
        padding: 16px;
    }
    
    .title-container {
        gap: 12px;
    }

    .title-logo {
        height: 1.5rem;
    }

    .migration-title {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.125rem;
    }
    
    /* Mobile responsive for recommendations banner */
    .recommendations-banner {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .banner-header {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .recommendation-list li {
        padding: 10px 12px;
        font-size: 0.8125rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }
}

/* Form 4 Migration Complete Styles */
.migration-complete-alert {
    background: #FFFFFF;
    border: 1px solid #D3FC51;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}

.success-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
}

.success-title {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px 0;
}

.success-message {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Next Steps Section */
.next-steps {
    margin-top: 24px;
}

.instructions-priority-title,
.instructions-general-title,
.instructions-title,
.instructions-pds-links-title {
    color: #8B8BFF;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0 16px 0;
    border-bottom: 2px solid #DCDCFF;
    padding-bottom: 8px;
}

.fqdn-explanation,
.pds-links-description {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.priority-steps,
.general-steps {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.priority-steps li,
.general-steps li {
    margin-bottom: 8px;
}

.priority-steps a,
.general-steps a {
    color: #8B8BFF;
    text-decoration: underline;
    font-weight: 500;
}

.priority-steps a:hover,
.general-steps a:hover {
    color: #D3FC51;
}

.dns-note {
    background: #F2FECB;
    color: #000000;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #D3FC51;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 16px 0 24px 0;
}

/* PDS Policy Links Section */
.pds-links-section {
    background: #DCDCFF;
    border: 1px solid #8B8BFF;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0 24px 0;
}

.pds-links-list {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.pds-links-list li {
    margin-bottom: 8px;
}

.pds-links-list a {
    color: #8B8BFF;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s ease;
}

.pds-links-list a:hover {
    color: #D3FC51;
}

/* Video Tutorial Accordion Styles */
.video-accordion {
    background: #FFFFFF;
    border: 2px solid #8B8BFF;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(139, 139, 255, 0.15);
    overflow: hidden;
}

.video-accordion-header {
    width: 100%;
    background: linear-gradient(135deg, #DCDCFF 0%, rgba(139, 139, 255, 0.1) 100%);
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-accordion-header:hover {
    background: linear-gradient(135deg, #8B8BFF 0%, rgba(139, 139, 255, 0.8) 100%);
    color: #FFFFFF;
}

.video-accordion-header:hover .video-accordion-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.video-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    transition: color 0.3s ease;
}

.video-accordion-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.video-accordion-header:hover .video-accordion-title {
    color: #FFFFFF;
}

.video-accordion-subtitle {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
    margin-left: 37px; /* Align with text after icon */
    transition: color 0.3s ease;
}

.video-accordion-content {
    animation: slideDown 0.3s ease-out;
    background: #FFFFFF;
}

.video-accordion-body {
    padding: 24px;
    border-top: 1px solid #DCDCFF;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-description {
    color: #000000;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    padding: 12px 16px;
    background: #DCDCFF;
    border-left: 4px solid #8B8BFF;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Responsive design for video accordion */
@media (max-width: 640px) {
    .video-accordion {
        margin-bottom: 24px;
    }
    
    .video-accordion-header {
        padding: 16px 20px;
    }
    
    .video-accordion-title {
        font-size: 1rem;
        gap: 10px;
    }
    
    .video-accordion-subtitle {
        font-size: 0.8125rem;
        margin-left: 32px;
    }
    
    .video-accordion-body {
        padding: 20px;
    }
    
    .video-description {
        font-size: 0.8125rem;
        padding: 10px 14px;
    }
}

/* Console Messages Display */
.console-messages-section {
    margin-top: 24px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
}

.console-messages-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.console-messages-container {
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
}

.console-message {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 3px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
}

.console-message:last-child {
    margin-bottom: 0;
}

/* Console message type styling */
.console-message {
    color: #212529;
}

/* Different colors for different log levels */
.console-message:contains("[ERROR]") {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.console-message:contains("[WARN]") {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.console-message:contains("[INFO]") {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

.console-message:contains("[DEBUG]") {
    border-left-color: #6f42c1;
    background-color: #e2e3f1;
    color: #493776;
}