* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cf-orange: #f48120;
    --cf-orange-hover: #e67419;
    --cf-dark: #0d0d0d;
    --cf-gray: #404040;
    --cf-gray-light: #6b7280;
    --cf-light-gray: #f5f5f5;
    --cf-border: #e0e0e0;
    --cf-border-dark: #d1d5db;
    --success: #059669;
    --success-light: #d1fae5;
    --success-border: #6ee7b7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --warning-border: #fcd34d;
    --info: #0284c7;
    --info-light: #e0f2fe;
    --info-border: #7dd3fc;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--cf-dark);
    background: var(--cf-light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--cf-dark) 0%, #1a1a2e 100%);
    color: white;
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.back-to-home:hover {
    color: var(--cf-orange);
}

.back-to-home svg {
    width: 18px;
    height: 18px;
}

.header-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.header-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: 8px;
}

.version-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.header-description {
    font-size: 0.875rem;
    opacity: 0.75;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
}

.btn-reset-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.btn-reset-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-reset-header svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
main {
    flex: 1;
    padding: 32px 0;
}

/* Progress Bar */
.progress-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--cf-border);
}

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

.progress-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cf-dark);
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cf-orange);
    background: rgba(244, 129, 32, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.progress-track {
    height: 6px;
    background: var(--cf-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cf-orange), #ff9500);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps Layout */
.steps-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar Navigation */
.steps-sidebar {
    position: sticky;
    top: 24px;
}

.step-nav {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--cf-border);
}

.step-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cf-border);
}

.step-nav h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cf-gray-light);
    font-weight: 600;
}

.step-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cf-border) transparent;
}

.phase-header {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, var(--cf-dark), #2c3e50);
    border-radius: var(--radius);
    color: white;
}

.phase-header:first-child {
    margin-top: 0;
}

.phase-number {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    font-weight: 600;
    margin-bottom: 2px;
}

.phase-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.step-nav-list::-webkit-scrollbar {
    width: 4px;
}

.step-nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.step-nav-list::-webkit-scrollbar-thumb {
    background: var(--cf-border);
    border-radius: 2px;
}

.step-nav-item {
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--cf-gray);
    border: 1px solid transparent;
    line-height: 1.3;
}

.step-nav-item:hover {
    background: var(--cf-light-gray);
}

.step-nav-item.active {
    background: var(--cf-orange);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.step-nav-item.completed:not(.active) {
    color: var(--success);
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition);
    margin-top: 1px;
}

.step-nav-item.active .step-number {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.step-nav-item.completed:not(.active) .step-number {
    background: var(--success);
    color: white;
}

.step-nav-item .step-title {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Step Content */
.step-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--cf-border);
    min-height: 500px;
}

.step-header {
    margin-bottom: 28px;
}

.step-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--cf-orange), #ff9500);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.time-badge:hover {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

.time-badge svg {
    flex-shrink: 0;
}

.time-estimate-label {
    font-weight: 600;
    opacity: 0.7;
    margin-right: -2px;
}

.step-title-sidebar {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cf-dark);
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cf-dark);
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.step-description {
    font-size: 1rem;
    color: var(--cf-gray);
    line-height: 1.7;
}

/* Checkpoints */
.checkpoints {
    margin: 28px 0;
}

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

.checkpoints h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cf-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkpoints h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--cf-orange);
    border-radius: 2px;
}

.checkpoint {
    padding: 14px 16px;
    background: var(--cf-light-gray);
    border-radius: var(--radius);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    user-select: none;
}

.checkpoint:hover {
    background: #eaeaea;
    border-color: var(--cf-border-dark);
}

.checkpoint:active {
    transform: scale(0.995);
}

.checkpoint.completed {
    background: var(--success-light);
    border-color: var(--success-border);
}

.checkpoint.completed:hover {
    background: #c6f6d5;
}

.checkbox-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.checkbox-wrapper input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--cf-border-dark);
    border-radius: 4px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}

.checkpoint:hover .checkbox-custom {
    border-color: var(--cf-gray-light);
}

.checkpoint.completed .checkbox-custom {
    background: var(--success);
    border-color: var(--success);
}

.checkpoint.completed .checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.checkpoint-label {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--cf-dark);
    line-height: 1.4;
}

.checkpoint.optional .checkpoint-label {
    color: var(--cf-gray);
}

.checkpoint-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.checkpoint-badge.optional {
    background: var(--cf-border);
    color: var(--cf-gray);
}

.checkpoint-badge.required {
    background: rgba(244, 129, 32, 0.1);
    color: var(--cf-orange);
}

/* Documentation */
.documentation {
    margin: 28px 0;
    padding: 20px;
    background: var(--info-light);
    border-left: 3px solid var(--info);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.documentation h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 8px;
}

.documentation-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.documentation a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--info);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.875rem;
    transition: all var(--transition);
    word-break: break-all;
}

.documentation a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.documentation a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Step Images */
.step-images {
    margin: 28px 0;
    padding: 20px;
    background: var(--cf-light-gray);
    border-left: 3px solid var(--cf-orange);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.step-images h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--cf-orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.image-placeholder {
    position: relative;
    background: white;
    border: 2px dashed var(--cf-border);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.image-placeholder.image-missing img {
    display: none;
}

.image-missing-text {
    display: none;
    color: var(--cf-gray-light);
    font-size: 0.875rem;
    text-align: center;
}

.image-placeholder.image-missing .image-missing-text {
    display: block;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid var(--warning-border);
    color: #92400e;
}

.alert-warning svg {
    color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    border: 1px solid var(--info-border);
    color: #0c4a6e;
}

.alert strong {
    font-weight: 600;
}

/* Command Block */
.command-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid #333;
}

.command-block code {
    display: block;
    white-space: pre;
    line-height: 1.6;
}

/* Dashboard Link */
.dashboard-link-container {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
    border: 2px solid var(--cf-orange);
    border-radius: var(--radius);
    text-align: center;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--cf-orange);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.2);
}

.btn-dashboard:hover {
    background: #e07820;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

.btn-dashboard svg {
    flex-shrink: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cf-border);
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--cf-orange);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--cf-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--cf-dark);
    border: 1px solid var(--cf-border-dark);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--cf-light-gray);
    border-color: var(--cf-gray-light);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Completion Screen */
.completion-screen {
    text-align: center;
    padding: 60px 20px;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.completion-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.completion-screen h2 {
    font-size: 1.75rem;
    color: var(--cf-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.completion-screen p {
    font-size: 1rem;
    color: var(--cf-gray);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--cf-border);
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--cf-gray-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.footer-disclaimer strong {
    color: var(--cf-gray);
    font-weight: 600;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cf-dark);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--cf-dark);
}

.github-link:hover {
    background: #24292e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.github-link svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 24px 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .btn-reset-header {
        width: 100%;
        justify-content: center;
    }

    main {
        padding: 20px 0;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .steps-sidebar {
        position: static;
    }

    .step-nav-list {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-nav-item {
        flex: 0 0 auto;
        padding: 8px 12px;
    }

    .step-nav-item .step-title {
        display: none;
    }

    .step-content {
        padding: 24px 20px;
        min-height: auto;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content>* {
    animation: fadeIn 0.3s ease-out;
}

/* Terraform Files Section */
.terraform-files-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 129, 32, 0.2);
}

.terraform-files-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.terraform-files-header svg {
    color: var(--cf-orange);
    flex-shrink: 0;
}

.terraform-files-header h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.terraform-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.terraform-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.terraform-file-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terraform-file-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cf-orange);
    transform: translateY(-2px);
}

.terraform-file-icon {
    width: 40px;
    height: 40px;
    background: rgba(244, 129, 32, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.terraform-file-icon svg {
    color: var(--cf-orange);
}

.terraform-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terraform-file-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.terraform-file-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
}

.terraform-file-actions {
    display: flex;
    justify-content: flex-end;
}

.terraform-file-actions .btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.terraform-file-actions .btn-icon:hover {
    background: var(--cf-orange);
}

.terraform-file-actions .btn-icon svg {
    color: white;
    width: 16px;
    height: 16px;
}

.terraform-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terraform-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.terraform-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* Terraform Modal */
.terraform-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.terraform-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.terraform-modal-content {
    position: relative;
    background: #1e1e1e;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.terraform-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.terraform-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.terraform-modal-title svg {
    color: var(--cf-orange);
}

.terraform-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terraform-modal-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.terraform-modal-actions .btn-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.6);
}

.terraform-modal-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.terraform-modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.terraform-code {
    margin: 0;
    padding: 20px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    tab-size: 2;
}

.terraform-code code {
    font-family: inherit;
    white-space: pre;
}

/* Mobile responsive adjustments for Terraform section */
@media (max-width: 768px) {
    .terraform-files-section {
        padding: 16px;
        margin-top: 24px;
    }

    .terraform-files-header {
        gap: 8px;
    }

    .terraform-files-header svg {
        width: 20px;
        height: 20px;
    }

    .terraform-files-header h4 {
        font-size: 1rem;
    }

    .terraform-description {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .terraform-files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .terraform-file-card {
        padding: 12px;
        gap: 10px;
    }

    .terraform-file-icon {
        width: 36px;
        height: 36px;
    }

    .terraform-file-icon svg {
        width: 18px;
        height: 18px;
    }

    .terraform-file-name {
        font-size: 0.85rem;
    }

    .terraform-file-desc {
        font-size: 0.75rem;
    }

    .terraform-modal {
        padding: 8px;
    }

    .terraform-modal-content {
        max-height: 92vh;
        border-radius: var(--radius);
    }

    .terraform-modal-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .terraform-modal-title {
        font-size: 0.85rem;
        width: 100%;
    }

    .terraform-modal-actions {
        width: 100%;
        justify-content: space-between;
    }

    .terraform-modal-actions .btn-sm {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .terraform-code {
        font-size: 0.7rem;
        padding: 12px;
        line-height: 1.5;
    }

    .terraform-actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }

    .terraform-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .terraform-files-section {
        padding: 12px;
        margin-top: 20px;
        border-radius: var(--radius);
    }

    .terraform-files-header h4 {
        font-size: 0.9rem;
    }

    .terraform-modal-header {
        padding: 10px 12px;
    }

    .terraform-modal-actions .btn-sm {
        padding: 6px 8px;
    }

    .terraform-modal-actions .btn-icon {
        width: 28px;
        height: 28px;
    }

    .terraform-code {
        font-size: 0.65rem;
        padding: 10px;
    }
}