:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
}

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

/* General link styles */
a {
    color: #28a745; /* Green color */
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #218838; /* Darker green on hover */
    text-decoration: underline;
}

a:visited {
    color: #28a745; /* Same green for visited links */
}

a:active {
    color: #1e7e34; /* Even darker green when clicked */
    text-decoration: underline;
}

.header {
    text-align: center;
    padding: 1rem 0;
    background-color: #2c3e50;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}

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

.error {
    background-color: #fdecea;
    color: #c0392b;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: var(--primary);
    color: white;
    text-align: left;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

th:hover {
    background-color: var(--primary-dark);
}

th i {
    margin-left: 0.5rem;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e6f7ff;
}

.row-number {
    text-align: center;
    color: #7f8c8d;
    font-weight: bold;
    width: 2.5rem;
}

.mobile-small {
    font-size: 0.8rem;
    color: #666;
}

.signal {
    font-weight: 500;
}

.signal.excellent {
    color: var(--success);
}

.signal.good {
    color: var(--warning);
}

.signal.weak {
    color: var(--danger);
}

.signal-bar {
    height: 4px;
    background: linear-gradient(to right, var(--success), var(--danger));
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Footer with light green links */
.footer {
    text-align: center;
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: #2c3e50;
    color: white;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
}

.footer strong {
    color: #3498db;
}

@media (max-width: 768px) {
    .container {
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    table {
        font-size: 0.8rem;
        display: block;
        white-space: nowrap;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .mobile-small {
        font-size: 0.7rem;
    }
    
    .header h1 {
        font-size: 1.2rem;
        padding: 0.8rem 0;
    }
    
    .footer {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
}

