body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.router-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 25px;
    border-bottom: 3px solid #ffc107;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.router-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.router-header .wifi-icon {
    width: 32px;
    height: 32px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1e3c72;
}

.router-header .wifi-icon img {
    width: 24px;
    height: 24px;
}

nav {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0;
}

nav h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.user-info {
    margin: 0.5rem 0 0 0;
    color: #e8f4fd;
    font-size: 0.85rem;
    font-weight: 400;
}

.router-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 25px 0 25px;
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav li {
    flex: 1;
}

nav a {
    color: #e8f4fd;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #ffc107;
    color: white;
}

nav a.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #ffc107;
    color: white;
}

main {
    padding: 25px;
    background: white;
    min-height: 500px;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-form {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 25px 25px;
    text-align: center;
    border-bottom: 3px solid #ffc107;
}

.login-header .wifi-icon {
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1e3c72;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.login-header .wifi-icon img {
    width: 32px;
    height: 32px;
}

.login-form h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.login-form h2 {
    text-align: center;
    color: #495057;
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.login-body {
    padding: 25px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.hint {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    margin: -25px -25px 25px -25px;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: #495057;
    font-weight: 600;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.status-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.status-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.stat {
    font-size: 2rem;
    font-weight: bold;
    color: #27ae60;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

table tr:hover {
    background-color: #f8f9fa;
}

table a {
    color: #3498db;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

form {
    margin: 1rem 0;
}

form input, form button {
    padding: 0.8rem;
    margin: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #2980b9;
}

.result {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.result pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.message {
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: 4px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.profile-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.tool-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

label {
    display: block;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: bold;
    color: #2c3e50;
}
