* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #419A1C 0%, #2D6A13 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

.search-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ip-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.ip-input:focus {
    border-color: #419A1C;
    box-shadow: 0 0 0 3px rgba(65, 154, 28, 0.1);
}

.ip-input.valid {
    border-color: #419A1C;
    box-shadow: 0 0 0 3px rgba(65, 154, 28, 0.1);
}

.ip-input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.steam-cache-info {
    border-left: 4px solid #419A1C !important;
    background: #E8F5E8 !important;
}

.steam-cache-yes {
    color: #419A1C !important;
    font-weight: 600;
}

.steam-cache-no {
    color: #dc3545 !important;
    font-weight: 600;
}

.steam-cache-info.steam-cache-no {
    border-left: 4px solid #dc3545 !important;
    background: #fdf2f2 !important;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #419A1C 0%, #2D6A13 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(65, 154, 28, 0.3);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.current-ip-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #419A1C;
    border: 2px solid #419A1C;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-ip-btn:hover {
    background: #419A1C;
    color: white;
}

.results-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}



.results-content {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #419A1C;
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    color: #666;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 24px 0 0 0;
    color: #666;
    font-size: 1rem;
}
.footer a {
    color: #419A1C;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer a:hover,
.footer a:focus {
    color: #419A1C;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-value {
        max-width: 100%;
        text-align: left;
    }
} 