:root {
    --card-bg: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
}

.examples-page {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto !important;
    height: auto !important;
    user-select: text !important;
}

.examples-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.examples-header {
    margin-bottom: 4rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--accent);
}

.examples-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
    line-height: 1.6;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 107, 192, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-preview {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.tag {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.node-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0.6;
}

.use-template {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.use-template:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(92, 107, 192, 0.4);
}

/* Slot Selection Modal */
.slot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.slot-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slot-modal-header {
    margin-bottom: 2rem;
}

.slot-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.slot-modal-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.slot-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.slot-opt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    text-align: left;
}

.slot-opt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

.slot-name {
    font-weight: 600;
}

.slot-status {
    font-size: 0.75rem;
    opacity: 0.6;
}

.slot-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.cancel-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.cancel-modal:hover {
    color: white;
}