/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header {
    background: #1a2a6c;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

header nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffd700;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: #ffd700;
    color: #1a2a6c;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255,215,0,0.3);
}

.btn-primary:hover {
    background: #ffed4a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255,215,0,0.4);
}

.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Features section */
.features {
    padding: 3rem 0;
    background: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a2a6c;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #1a2a6c;
    margin-bottom: 0.8rem;
}

/* Server list styles */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.server-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.server-card h3 {
    background: #1a2a6c;
    color: #fff;
    padding: 1rem;
    margin: 0;
}

.server-card p {
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.server-card p:last-child {
    border-bottom: none;
}

.server-card .btn-primary {
    display: block;
    margin: 1.5rem;
    text-align: center;
}

.status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a2a6c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255,215,0,0.5);
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: #1a2a6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #b21f1f;
}

/* Footer */
footer {
    background: #1a2a6c;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: #ffd700;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}