* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #666;
    font-size: 1em;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.result-box:hover {
    border-color: #2a5298;
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
    transform: translateY(-3px);
}

.result-label {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 5px;
}

.result-unit {
    color: #999;
    font-size: 0.9em;
}

.ip-info {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    color: #555;
}

.progress-container {
    margin-bottom: 25px;
    display: none;
}

.progress-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

.progress-label {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(42, 82, 152, 0.5);
}

.status {
    text-align: center;
    color: #2a5298;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.95em;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

button {
    flex: 1;
    padding: 16px 30px;
    font-size: 1em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    font-size: 1.2em;
}

.btn-start {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

.btn-start:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    background: #e9ecef;
    color: #333;
}

.btn-reset:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2a5298;
    padding: 18px;
    border-radius: 8px;
    color: #333;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.history {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.history h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#historyList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    border-left: 3px solid #2a5298;
}

.history-item span {
    color: #666;
}

.history-item strong {
    color: #1e3c72;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 0.9em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .results {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-container {
        flex-direction: column;
    }

    .ip-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    .result-value {
        font-size: 1.8em;
    }

    button {
        padding: 14px 20px;
        font-size: 0.9em;
    }
}
.nav-links {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}