/* MCL V3.0 — Sandbox demo landing (sajt) */
.demo-body {
    margin: 0;
    font-family: "Century Gothic", "Segoe UI", system-ui, sans-serif;
    color: #134e4a;
    min-height: 100vh;
    position: relative;
}

.demo-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, #f0fdfa 0%, #ecfeff 40%, #f0fdfa 100%);
}

.demo-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.demo-header {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.demo-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.15);
    color: #0e7490;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.demo-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #134e4a;
    margin: 0 0 0.5rem;
}

.demo-lead {
    color: #0f766e;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(19, 78, 74, 0.06);
}

.demo-disclaimer strong {
    display: block;
    color: #0f766e;
    margin-bottom: 0.35rem;
}

.demo-disclaimer p {
    margin: 0 0 0.75rem;
    line-height: 1.5;
    font-size: 14px;
}

.demo-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-tags li {
    font-size: 12px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.demo-section-title {
    font-size: 1.15rem;
    color: #134e4a;
    margin: 0 0 1rem;
}

.demo-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-role-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    text-align: left;
}

.demo-role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
}

.demo-role-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: #134e4a;
}

.demo-role-card p {
    font-size: 13px;
    color: #0f766e;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.demo-role-card .demo-enter {
    font-size: 12px;
    font-weight: 700;
    color: #06b6d4;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 0.5rem;
}

.demo-role-scope {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.demo-role-spec {
    font-size: 12px;
    color: #b45309;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.demo-credentials code {
    background: rgba(6, 182, 212, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #0e7490;
}

.demo-role-card.loading {
    opacity: 0.65;
    pointer-events: none;
}

.demo-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.demo-module-card {
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(240, 253, 250, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.demo-module-card h3 {
    font-size: 14px;
    margin: 0 0 0.25rem;
    color: #134e4a;
}

.demo-module-card p {
    font-size: 12px;
    margin: 0;
    color: #0f766e;
    line-height: 1.4;
}

.demo-code {
    background: #134e4a;
    color: #f0fdfa;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 12px;
    overflow-x: hidden;
    margin: 0;
}

.demo-footnote {
    font-size: 12px;
    color: #0f766e;
    margin: 0.75rem 0 0;
    line-height: 1.45;
}

.demo-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.demo-alert-warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.demo-alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.demo-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 13px;
    color: #0f766e;
}

.demo-footer a {
    color: #06b6d4;
    text-decoration: none;
}

.demo-footer a:hover {
    text-decoration: underline;
}

/* Global demo banner (unutar aplikacije) */
.mcl-demo-banner {
    position: sticky;
    top: 0;
    z-index: 1050;
    margin: 0;
    padding: 0.55rem 1rem;
    background: linear-gradient(90deg, #134e4a, #0f766e);
    color: #f0fdfa;
    font-size: 13px;
    text-align: center;
    border-bottom: 2px solid #06b6d4;
}

.mcl-demo-banner strong {
    color: #2dd4bf;
    margin-right: 0.35rem;
}

.mcl-demo-banner a {
    color: #a5f3fc;
    margin-left: 0.75rem;
}

body.has-demo-banner #app-wrapper {
    min-height: calc(100vh - 40px);
}
