* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c 0%, #2c3e50 100%);
    color: #ecf0f1;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3498db;
}

.description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.router-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.router-card {
    background: rgba(30, 40, 60, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2c3e50;
}

.router-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-header {
    padding: 20px;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    gap: 15px;
}

.router-icon {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.router-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.router-info .ip {
    color: #3498db;
    font-family: monospace;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.status-online {
    color: #2ecc71;
}

.status-offline {
    color: #e74c3c;
}

.status-disabled {
    color: #7f8c8d;
}

.btn {
    text-align: center;
    background: #3498db;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    display: block;
}

.btn:hover {
    background: #2980b9;
}

.btn-disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #7f8c8d;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #7f8c8d;
    border-top: 1px solid #34495e;
}

@media (max-width: 768px) {
    .router-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #3498db;
    border-radius: 25px;
    padding: 12px 20px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-box i {
    color: #3498db;
    margin-right: 10px;
    font-size: 1.1rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: #bdc3c7;
}

.lang-switch {
    margin-top: 10px;
    text-align: right;
}
.lang-switch label {
    color: #3498db;
    margin-right: 5px;
}
.lang-switch select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #3498db;
    background: #2c3e50;
    color: #ecf0f1;
}