:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #2ecc71;
    --light: #ecf0f1;
    --dark: #4a5057;
    --grey: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--secondary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22, var(--warning));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, var(--danger));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.networks-list {
    display: grid;
    gap: 15px;
}

.network-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    border-left: 4px solid var(--success);
}

.network-item.suspicious {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.1), transparent);
}

.network-item.danger {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.network-info {
    flex: 1;
    min-width: 250px;
}

.network-name {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.network-details {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.network-detail {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.warning-reason {
    background: rgba(243, 156, 18, 0.2);
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
    color: var(--warning);
    border-left: 3px solid var(--warning);
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-strength {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.signal-bar {
    width: 5px;
    background-color: var(--success);
    border-radius: 2px;
    margin: 0 1px;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-safe {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.status-warning {
    background: rgba(243, 156, 18, 0.2);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.5);
}

.status-danger {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

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

.stat-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.primary-stat {
    color: var(--secondary);
}

.safe-stat {
    color: var(--success);
}

.warning-stat {
    color: var(--warning);
}

.danger-stat {
    color: var(--danger);
}

.stat-label {
    font-size: 1rem;
    color: var(--light);
    opacity: 0.9;
}

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

.visual-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list li:last-child {
    border-bottom: none;
}

.note-box {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.note-box h3 {
    color: var(--warning);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--light);
    font-size: 0.9rem;
    opacity: 0.8;
}

.scan-animation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--success));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, var(--success), #27ae60);
}

.notification.danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
}

.notification.info {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}