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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5em 2em;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2em;
}

.header-content .nav-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    white-space: nowrap;
    min-width: 150px;
}

.header-content .center-text {
    flex: 1;
    text-align: center;
}

.header-content .nav-right {
    white-space: nowrap;
    min-width: 150px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
    color: white;
}

.header p {
    font-size: 1.1em;
    color: white;
    opacity: 0.9;
}

.header-content a {
    color: white;
    text-decoration: none;
    padding: 0.6em 1.2em;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.header-content a:hover {
    background: rgba(255,255,255,0.2);
}

.header-content a.home-icon {
    font-size: 1.3em;
    padding: 0.5em 0.7em;
}

.nav {
    display: none;
}

.content {
    padding: 2.5em 3em;
}

h2 {
    color: #2c3e50;
    margin: 1.5em 0 0.8em 0;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #667eea;
    font-size: 1.8em;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    color: #34495e;
    margin: 1.2em 0 0.6em 0;
    font-size: 1.3em;
}

p {
    line-height: 1.8;
    margin: 0.8em 0;
    color: #555;
    font-size: 1em;
}

ul, ol {
    margin: 1em 0;
    padding-left: 2.5em;
}

li {
    margin: 0.5em 0;
    line-height: 1.7;
    color: #555;
}

code {
    background: #f4f4f4;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 0.9em;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #667eea;
    padding: 1.2em;
    margin: 1.5em 0;
    border-radius: 4px;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1.2em;
    margin: 1.5em 0;
    border-radius: 4px;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.2em;
    margin: 1.5em 0;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.stat-card h3 {
    color: white;
    margin: 0 0 0.5em 0;
    font-size: 1em;
    opacity: 0.9;
}

.stat-card .value {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0.3em 0;
}

.stat-card p {
    color: white;
    opacity: 0.8;
    font-size: 0.9em;
    margin: 0;
}

.chart-container {
    margin: 2em 0;
    padding: 1.5em;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1em;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.9em 1em;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

tr:hover {
    background: #f5f5f5;
}

.diagram-container {
    margin: 2em 0;
    text-align: center;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.small-text {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 0.5em;
}

strong {
    color: #2c3e50;
    font-weight: 600;
}

em {
    color: #667eea;
    font-style: normal;
    font-weight: 500;
}
