/* Common styles for all pages */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation bar */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover {
    background: #667eea;
    color: white;
}

nav ul li a.active {
    background: #667eea;
    color: white;
}

/* Content container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    color: #34495e;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

h3 {
    color: #34495e;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

h4 {
    color: #34495e;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

ul li, ol li {
    color: #555;
    margin-bottom: 8px;
}

/* Code blocks */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 15px;
}

pre code {
    background: none;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background: #f5f5f5;
}

/* Buttons */
button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-top: 0;
}

/* Stats boxes */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-box .label {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background: white;
    color: #2c3e50;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

footer a {
    color: #667eea;
    text-decoration: underline;
}

footer a:hover {
    color: #764ba2;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}
