/* UML Diagrams Page Styles */

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

main {
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.diagram-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-container h2 {
    color: #00d4ff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.diagram-container p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.mermaid {
    display: flex;
    justify-content: center;
    background: #ffffff !important;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

.mermaid svg text,
.mermaid svg tspan {
    fill: #000000 !important;
    font-weight: 500;
}

.mermaid svg .actor,
.mermaid svg .note,
.mermaid svg .cluster rect,
.mermaid svg rect.actor {
    stroke: #2c3e50 !important;
    stroke-width: 2px;
}

.nav-toc {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.nav-toc a {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.2s;
}

.nav-toc a:hover {
    background: rgba(0, 212, 255, 0.4);
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #b0b0b0;
    line-height: 1.6;
}

.intro a {
    color: #00d4ff;
    text-decoration: none;
}

.intro a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-toc { display: none; }
    main { padding: 1rem; }
    h1 { font-size: 1.5rem; }
    .diagram-container { padding: 1rem; }
    .mermaid { padding: 0.5rem; }
}
