/* Deployment Management Styles */
/* Modern, professional design for cloud deployment management */

/* ===== Progress Items ===== */
.progress-category {
    margin-bottom: 32px;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.3s ease;
}

.progress-item.completed {
    border-color: #10b981;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.progress-item.pending {
    border-color: #f59e0b;
    background: linear-gradient(to right, #ffffff 0%, #fffbeb 100%);
}

.progress-item.future {
    border-color: #6366f1;
    background: linear-gradient(to right, #ffffff 0%, #eef2ff 100%);
}

.progress-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.progress-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.progress-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.progress-content ul li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    padding-left: 8px;
    position: relative;
}

.progress-content ul li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #94a3b8;
    font-weight: bold;
}

.progress-item.completed ul li::before {
    content: "✓";
    color: #10b981;
}

.progress-item.pending ul li::before {
    content: "○";
    color: #f59e0b;
}

.progress-item.future ul li::before {
    content: "▸";
    color: #6366f1;
}

/* ===== Layout ===== */
.deployment-management {
    max-width: 1400px;
    margin: 0 auto;
}

.deployment-management .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.deployment-management .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== Overview Cards ===== */
.deployment-overview {
    margin-bottom: 32px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.overview-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.overview-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--env-color, #1d4ed8);
}

.overview-card {
    cursor: pointer;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.overview-card.selected {
    border-color: var(--env-color, #1d4ed8);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--env-color, #1d4ed8) 20%, transparent),
                0 12px 24px -8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.overview-card.selected::before {
    height: 6px;
}

.overview-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.overview-card-icon {
    font-size: 28px;
    line-height: 1;
}

.overview-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.connectivity-status {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.connectivity-status.status-success {
    background: #dcfce7;
}

.connectivity-status.status-error {
    background: #fee2e2;
}

.connectivity-status.status-unknown {
    background: #f1f5f9;
}

.overview-card-body {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.overview-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.stat-value.version-value {
    font-family: 'Monaco', 'Consolas', monospace;
    color: #6366f1;
}

.overview-card-footer {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    gap: 10px;
}

.overview-card-footer .btn {
    flex: 1;
    justify-content: center;
}

/* ===== Deployment Tabs ===== */
.deployment-tabs {
    margin-bottom: 32px;
}

.deployment-tab-nav {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.deployment-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deployment-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #1e293b;
}

.deployment-tab-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-icon {
    font-size: 18px;
    line-height: 1;
}

.tab-label {
    font-weight: 500;
}

.tab-status {
    font-size: 10px;
    margin-left: 4px;
}

.deployment-tab-pane {
    display: none;
}

.deployment-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Environment Config Panel ===== */
.env-config-panel {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.env-config-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.env-info {
    flex: 1;
}

.env-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.env-icon {
    font-size: 28px;
    line-height: 1;
}

.env-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.env-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* ===== Config Sections ===== */
.env-config-sections {
    padding: 24px;
}

.env-config-sections.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.config-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.config-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.config-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.security-badge {
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: auto;
}

/* ===== Deployment Info Grid ===== */
.deployment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.info-item {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.info-value.version-value {
    font-family: 'Monaco', 'Consolas', monospace;
    color: #6366f1;
}

/* ===== Connectivity Panel ===== */
.connectivity-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.connectivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.connectivity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.connectivity-item.error-item {
    grid-column: 1 / -1;
}

.conn-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conn-value {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.conn-value.status-success {
    color: #059669;
}

.conn-value.status-error {
    color: #dc2626;
}

.conn-value.error {
    color: #dc2626;
    font-size: 13px;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.connectivity-test-btn {
    width: 100%;
    margin-top: 8px;
}

/* ===== Config Form ===== */
.config-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:disabled,
.form-select:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ===== Credentials Section ===== */
.credentials-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    margin: 0 -24px;
    padding: 24px !important;
    border-bottom: none !important;
    margin-bottom: -24px !important;
}

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.credentials-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.credentials-status.configured {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.credentials-status.not-configured {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-icon {
    font-size: 16px;
}

.secret-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.secret-input {
    flex: 1;
    padding-right: 44px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.secret-toggle {
    position: absolute;
    right: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.secret-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.credentials-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.help-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== Actions Section ===== */
.actions-section {
    background: #f8fafc;
    margin: 0 -24px -24px !important;
    padding: 24px !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: none !important;
    border-radius: 0 0 16px 16px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-buttons .btn {
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

/* ===== Deploy Status Badges ===== */
.deploy-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.deploy-status.deploy-success {
    background: #dcfce7;
    color: #166534;
}

.deploy-status.deploy-failed {
    background: #fee2e2;
    color: #991b1b;
}

.deploy-status.deploy-progress {
    background: #dbeafe;
    color: #1e40af;
}

.deploy-status.deploy-none {
    background: #f1f5f9;
    color: #64748b;
}

/* ===== Deployment History ===== */
.deployment-history-section {
    margin-top: 32px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-history {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.empty-history .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-history p {
    color: #64748b;
    margin: 0;
}

.history-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: #f8fafc;
}

.env-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--env-color, #1d4ed8) 0%, var(--env-color, #1d4ed8) 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.history-table code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #6366f1;
}

/* ===== Button Styles ===== */
.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-success:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .overview-cards {
        grid-template-columns: 1fr;
    }

    .deployment-tab-nav {
        flex-direction: column;
    }

    .deployment-tab-btn {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .env-config-header {
        flex-direction: column;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .deployment-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-card-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Main Tab Navigation ===== */
.main-tab-nav {
    display: flex;
    gap: 4px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.main-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-tab-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-tab-btn .tab-icon {
    font-size: 20px;
}

.main-tab-pane {
    display: none;
}

.main-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Documentation Styles ===== */
.documentation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.doc-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.doc-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.doc-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.doc-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.doc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.doc-section-header.aws-commercial-header {
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: white;
}

.doc-section-header.azure-header {
    background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
    color: white;
}

.doc-section-header.govcloud-header {
    background: linear-gradient(135deg, #232F3E 0%, #1a252f 100%);
    color: white;
}

.doc-section-header.quick-deploy-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.doc-section-header.architecture-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.doc-icon {
    font-size: 28px;
    line-height: 1;
}

.doc-section-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.doc-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-status-badge.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.doc-section-content {
    padding: 24px;
}

.doc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.doc-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.doc-info-card.full-width {
    grid-column: 1 / -1;
}

.doc-info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.doc-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.doc-info-item:last-child {
    margin-bottom: 0;
}

.doc-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.doc-value {
    font-size: 14px;
    color: #1e293b;
    word-break: break-all;
}

.doc-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
}

.doc-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

.doc-info-card code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #475569;
    word-break: break-all;
}

.doc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.doc-feature-list li:last-child {
    border-bottom: none;
}

.doc-code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.doc-code-block code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    background: transparent;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Architecture Diagram */
.architecture-diagram {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.diagram-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #374151;
    margin: 0;
    white-space: pre;
}

/* ===== Print Styles ===== */
@media print {
    .deployment-management {
        padding: 0;
    }

    .action-buttons,
    .secret-toggle,
    .toggle-switch {
        display: none;
    }

    .secret-input {
        -webkit-text-security: disc;
    }

    .doc-section-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===== Quick Links ===== */
.quick-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.quick-links h5 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px 0;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-buttons .btn {
    font-size: 13px;
    padding: 8px 14px;
    text-decoration: none;
}

/* ===== GovCloud Notice ===== */
.govcloud-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 1px solid #fbbf24;
    font-size: 13px;
    color: #92400e;
    margin-top: 12px;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== Deploy Dialog ===== */
.deploy-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.deploy-dialog {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deploy-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    color: white;
}

.deploy-dialog-header .dialog-icon {
    font-size: 28px;
}

.deploy-dialog-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.deploy-dialog-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.deploy-instruction {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.deploy-command-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.deploy-command-block pre {
    margin: 0;
    overflow-x: auto;
}

.deploy-command-block code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.deploy-command-block .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.deploy-tips {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.deploy-tips h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.deploy-tips ul {
    margin: 0;
    padding-left: 20px;
}

.deploy-tips li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}

.deploy-tips li:last-child {
    margin-bottom: 0;
}

.deploy-tips code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.deploy-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ===== Button Info Style ===== */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* ===== Deployment Wizard ===== */
.deploy-wizard {
    max-height: 90vh;
    overflow-y: auto;
}

.deploy-version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
    margin-right: 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.status-badge.pending {
    background: #f1f5f9;
    color: #64748b;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.checking {
    background: #fef3c7;
    color: #92400e;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.deploy-env-card {
    transition: all 0.2s ease;
}

.deploy-env-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ===== Infrastructure Services Documentation ===== */
.infrastructure-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.doc-intro {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.doc-description {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.doc-info-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.doc-table th {
    background: #f1f5f9;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.doc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.doc-table tr:hover {
    background: #f8fafc;
}

.doc-table code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.doc-table a {
    color: #3b82f6;
    text-decoration: none;
}

.doc-table a:hover {
    text-decoration: underline;
}

.architecture-flow {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.architecture-flow pre {
    color: #94a3b8;
    margin: 0;
    white-space: pre;
}

/* ===== Responsive for Documentation ===== */
@media (max-width: 1024px) {
    .doc-info-grid-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-tab-nav {
        flex-direction: column;
    }

    .doc-info-grid {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        font-size: 10px;
    }

    .deploy-dialog {
        margin: 10px;
        max-height: 95vh;
    }

    .link-buttons {
        flex-direction: column;
    }

    .link-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .doc-table {
        font-size: 11px;
    }
    
    .doc-table th,
    .doc-table td {
        padding: 8px;
    }
}

/* ===== Documentation Tabs ===== */
.doc-tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.doc-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 16px 0;
    gap: 4px;
    overflow-x: auto;
}

.doc-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.doc-tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.doc-tab-btn.active {
    background: white;
    color: #6366f1;
    font-weight: 600;
}

.doc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #6366f1;
}

.doc-tab-content {
    padding: 24px;
}

.doc-tab-pane {
    display: none;
}

.doc-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .doc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .doc-tab-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .doc-tab-content {
        padding: 16px;
    }
}

/* ===== Test Cases Styles ===== */
.test-case-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-case-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.test-case-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-case-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.test-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.test-case-body {
    padding: 20px;
}

.test-case-description {
    font-size: 15px;
    color: #475569;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8fafc;
    border-left: 4px solid #6366f1;
    border-radius: 4px;
}

.test-case-steps {
    margin-bottom: 20px;
}

.test-case-steps h5 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.test-case-steps ol {
    margin: 0;
    padding-left: 24px;
}

.test-case-steps ol li {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.6;
}

.test-credentials {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.test-credentials h5 {
    font-size: 16px;
    color: #92400e;
    margin-bottom: 12px;
    font-weight: 600;
}

.test-credentials p {
    font-size: 14px;
    color: #78350f;
    margin: 8px 0;
}

.credential-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.credential-label {
    font-weight: 600;
    font-size: 14px;
    color: #92400e;
    min-width: 100px;
}

.credential-value {
    flex: 1;
    background: white;
    border: 1px solid #fbbf24;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #78350f;
}

.copy-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.test-validation {
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.test-validation h5 {
    font-size: 16px;
    color: #065f46;
    margin-bottom: 12px;
    font-weight: 600;
}

.test-validation label {
    display: block;
    font-size: 14px;
    color: #047857;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-validation label:hover {
    color: #065f46;
    transform: translateX(4px);
}

.test-validation input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.test-run-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.test-run-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.test-urls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.test-intro {
    margin-bottom: 32px;
}

/* Mobile responsive test cases */
@media (max-width: 768px) {
    .test-case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .credential-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .credential-label {
        min-width: auto;
    }
    
    .credential-value {
        width: 100%;
    }
    
    .test-urls {
        flex-direction: column;
    }
    
    .test-run-btn {
        width: 100%;
    }
}

