@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: #0f172a;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #38bdf8;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #38bdf8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background-color: #7dd3fc;
}

.btn-secondary {
    background-color: #334155;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

/* Services / Architecture Grid */
.services {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0f172a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.card-btn {
    display: block;
    text-align: center;
    background-color: #f1f5f9;
    color: #334155;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.card-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Sub-pages server lists styling */
.page-content {
    padding: 60px 20px;
    flex: 1;
}

.page-title {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 40px;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.server-box {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

@media(max-width: 600px) {
    .server-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .server-box button {
        width: 100%;
    }
}

.server-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flag {
    font-size: 2.2rem;
}

.server-info h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.server-info p {
    font-size: 0.85rem;
    color: #64748b;
}

.status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.status.online {
    background-color: #dcfce7;
    color: #15803d;
}

.status.maintenance {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Config display panel */
.config-container {
    background: #0f172a;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.config-container h3 {
    color: #38bdf8;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.config-container textarea {
    width: 100%;
    height: 120px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #38bdf8;
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}
